Tag: 484bb6c969523aa547d854bb57104339ee4aa800

drm/rockchip/dsi: fix handling mipi_dsi_pixel_format_to_bpp result

Author: Andrzej Hajda <a.hajda@samsung.com> 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 Reviewed-by: Chris Zhong — drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)   diff –git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index 7bfe243..f8f8f29 100644 — a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ …

Continue reading