]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 14 Jan 2016 08:59:02 +0000 (09:59 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 18 Jan 2016 00:43:16 +0000 (08:43 +0800)
commit789b54a0e8e8e34e8e6227898fae3482dba7ac57
treed08bb42e449d974fff215143a14cbba09017cb7f
parente7ad5d5913ef34fa4cf70b64e1080e0cff80a736
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: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
drivers/gpu/drm/rockchip/dw-mipi-dsi.c