diff options
author | Inki Dae <inki.dae@samsung.com> | 2018-05-23 09:48:15 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2018-05-25 13:09:57 +0900 |
commit | 12678199c77d196ee23ca2cde4318b6a0e343687 (patch) | |
tree | 8a532c0f564d7bbf0c0755ff0fdddbd67f844cd7 /drivers/gpu | |
parent | e9dfe83d8985fcd2e0fac570215a039c24fb6b12 (diff) | |
download | talos-op-linux-12678199c77d196ee23ca2cde4318b6a0e343687.tar.gz talos-op-linux-12678199c77d196ee23ca2cde4318b6a0e343687.zip |
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')
-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; } |