[PATCH] drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result

2016-01-15 Thread Chris Zhong
Hi Andrzej On 01/14/2016 04:59 PM, Andrzej Hajda wrote: > 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 > --- >

[PATCH] drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result

2016-01-14 Thread Andrzej Hajda
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 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 ++- 1 file changed, 2