Skip to content
Commit 484bb6c9 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Mark Yao
Browse files

drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result



The function can return negative value so it should be assigned to signed
variable.

The problem has been detected using patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci.

Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Reviewed-by: default avatarChris Zhong <zyw@rock-chips.com>
parent c7647f86
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment