projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9dfe83
)
drm/exynos: scaler: fix static checker warning
author
Inki Dae
<inki.dae@samsung.com>
Wed, 23 May 2018 00:48:15 +0000
(09:48 +0900)
committer
Inki Dae
<inki.dae@samsung.com>
Fri, 25 May 2018 04:09:57 +0000
(13:09 +0900)
drivers/gpu/drm/exynos/exynos_drm_scaler.c:402 scaler_task_done()
warn: signedness bug returning '(-22)'
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_scaler.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_drm_scaler.c
b/drivers/gpu/drm/exynos/exynos_drm_scaler.c
index
63b05b7
..
91d4382
100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_drm_scaler.c
+++ b/
drivers/gpu/drm/exynos/exynos_drm_scaler.c
@@
-397,7
+397,7
@@
static inline u32 scaler_get_int_status(struct scaler_context *scaler)
return scaler_read(SCALER_INT_STATUS);
}
-static inline
bool
scaler_task_done(u32 val)
+static inline
int
scaler_task_done(u32 val)
{
return val & SCALER_INT_STATUS_FRAME_END ? 0 : -EINVAL;
}