Skip to content

Commit

Permalink
drm/exynos: scaler: fix static checker warning
Browse files Browse the repository at this point in the history
drivers/gpu/drm/exynos/exynos_drm_scaler.c:402 scaler_task_done()
warn: signedness bug returning '(-22)'

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
  • Loading branch information
daeinki committed May 25, 2018
1 parent e9dfe83 commit 1267819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/exynos/exynos_drm_scaler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1267819

Please sign in to comment.