fbdev: controlfb: Remove the unused function VAR_MATCH()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 14 Sep 2022 10:22:59 +0000 (18:22 +0800)
committerHelge Deller <deller@gmx.de>
Sat, 8 Oct 2022 13:20:08 +0000 (15:20 +0200)
The function VAR_MATCH is defined in the controlfb.c file, but not
called elsewhere, so delete this unused function.

drivers/video/fbdev/controlfb.c:111:19: warning: unused function 'VAR_MATCH'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2153
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/controlfb.c

index aba4611..6bbcd9f 100644 (file)
@@ -108,13 +108,6 @@ static inline int PAR_EQUAL(struct fb_par_control *x, struct fb_par_control *y)
        return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres)
                && !DIRTY(vxres) && !DIRTY(vyres));
 }
-static inline int VAR_MATCH(struct fb_var_screeninfo *x, struct fb_var_screeninfo *y)
-{
-       return (!DIRTY(bits_per_pixel) && !DIRTY(xres)
-               && !DIRTY(yres) && !DIRTY(xres_virtual)
-               && !DIRTY(yres_virtual)
-               && !DIRTY_CMAP(red) && !DIRTY_CMAP(green) && !DIRTY_CMAP(blue));
-}
 
 struct fb_info_control {
        struct fb_info          info;