diff options
author | Inki Dae <inki.dae@samsung.com> | 2018-05-23 03:48:15 +0300 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-05-25 07:09:57 +0300 |
commit | 12678199c77d196ee23ca2cde4318b6a0e343687 (patch) | |
tree | 8a532c0f564d7bbf0c0755ff0fdddbd67f844cd7 /drivers/gpu/drm/exynos | |
parent | e9dfe83d8985fcd2e0fac570215a039c24fb6b12 (diff) | |
download | linux-12678199c77d196ee23ca2cde4318b6a0e343687.tar.xz |
drm/exynos: scaler: fix static checker warning
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>
Diffstat (limited to 'drivers/gpu/drm/exynos')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_scaler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_scaler.c b/drivers/gpu/drm/exynos/exynos_drm_scaler.c index 63b05b7c846a..91d4382343d0 100644 --- 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; } |