Re: [PATCH] drm: zte: fix static checker warning on variable 'fmt'

2017-02-21 Thread Sean Paul
On Mon, Feb 20, 2017 at 8:49 AM, Shawn Guo wrote: > From: Shawn Guo > > Commit 4e986d3705df ("drm: zte: add overlay plane support") introduces > the following static checker warning: > > drivers/gpu/drm/zte/zx_plane.c:170 zx_vl_rsz_setup() > warn: always true condition '(fmt >= 0) => (0-u32max

[PATCH] drm: zte: fix static checker warning on variable 'fmt'

2017-02-20 Thread Shawn Guo
From: Shawn Guo Commit 4e986d3705df ("drm: zte: add overlay plane support") introduces the following static checker warning: drivers/gpu/drm/zte/zx_plane.c:170 zx_vl_rsz_setup() warn: always true condition '(fmt >= 0) => (0-u32max >= 0)' Fix it by change 'fmt' type to integer. Reported-by: D