drm/amd/display: fix warning comparing pointer to 0
Subsystems (3)
PATCH 1/1 drm/amd/display: fix warning comparing pointer to 0
Fix the following coccicheck warning:
./drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c:76:14-15: WARNING comparing pointer to 0.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c +1 -1
@@ -73,7 +73,7 @@ static void get_qp_set(qp_set qps, enum colour_mode cm, enum bits_per_comp bpc,TABLE_CASE (420 ,12 , min); } -if (table ==0 ) +if (!table)return ; index = (bpp - table[0 ].bpp) *2 ;
Signature · 6 lines
1.8.3.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel