diff options
author | Robby Cai <robby.cai@nxp.com> | 2022-08-08 15:35:23 +0800 |
---|---|---|
committer | Robby Cai <robby.cai@nxp.com> | 2022-08-09 16:04:14 +0800 |
commit | 16d5e478a2dd0e6b0640f30f00f18b26c6410658 (patch) | |
tree | 6962ec569db3ac9a87a33a25c70ba6c50465f2c6 /drivers | |
parent | f2404671cff4c5e143bf2ad8ea4f36e58f188558 (diff) |
LF-5163 video: epdc_v2: Fix Coverity Issue: 18996754 Unsigned compared against 0
correct type for rounded_pix_clk, rounded_parent_rate, which should be 'long'
as return value of clk_rounded_rate().
Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Alice Yuan <alice.yuan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c b/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c index 734a3071f703..166000178ec5 100644 --- a/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c +++ b/drivers/video/fbdev/mxc/mxc_epdc_v2_fb.c @@ -4773,8 +4773,8 @@ static void mxc_epdc_fb_fw_handler(const struct firmware *fw, struct fb_var_screeninfo *screeninfo = &fb_data->epdc_fb_var; u32 xres, yres; struct clk *epdc_parent; - unsigned long rounded_parent_rate, epdc_pix_rate, - rounded_pix_clk, target_pix_clk; + unsigned long target_pix_clk, epdc_pix_rate; + long rounded_pix_clk, rounded_parent_rate; if (fw == NULL) { /* If default FW file load failed, we give up */ |