Skip to content

Commit 83434cc

Browse files
Jiapeng Chonghdeller
authored andcommitted
fbdev: controlfb: Remove the unused function VAR_MATCH()
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>
1 parent 5994521 commit 83434cc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

drivers/video/fbdev/controlfb.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,6 @@ static inline int PAR_EQUAL(struct fb_par_control *x, struct fb_par_control *y)
108108
return (!DIRTY(cmode) && !DIRTY(xres) && !DIRTY(yres)
109109
&& !DIRTY(vxres) && !DIRTY(vyres));
110110
}
111-
static inline int VAR_MATCH(struct fb_var_screeninfo *x, struct fb_var_screeninfo *y)
112-
{
113-
return (!DIRTY(bits_per_pixel) && !DIRTY(xres)
114-
&& !DIRTY(yres) && !DIRTY(xres_virtual)
115-
&& !DIRTY(yres_virtual)
116-
&& !DIRTY_CMAP(red) && !DIRTY_CMAP(green) && !DIRTY_CMAP(blue));
117-
}
118111

119112
struct fb_info_control {
120113
struct fb_info info;

0 commit comments

Comments
 (0)