Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12678199 authored by Inki Dae's avatar Inki Dae
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent e9dfe83d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}