Skip to contentSkip to conversation

fbmon: remove unused function argument

PATCH Applied Arnd Bergmann 1 participant 1 message Jul 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbmon: remove unused function argument

When building with "make W=1", we get a warning about an empty stub function that does nothing but reassign its one of its arguments:

drivers/video/fbdev/core/fbmon.c: In function 'fb_edid_to_monspecs':
drivers/video/fbdev/core/fbmon.c:1497:67: error: parameter 'specs' set but not used [-Werror=unused-but-set-parameter]

We can simply make that function completely empty to avoid the warning.

--
I sent this patch on June 16 when this warning was only for "make W=1", but never got a reply from the fbdev maintainers.

Now Andrew merged a patch to have the warning at the default level, maybe he can apply this as well.

---
 drivers/video/fbdev/core/fbmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/video/fbdev/core/fbmon.c +0 -1
index 55e39e822b79..eaa6bab21839 100644
@@ -1496,7 +1496,6 @@ int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var)
 }
 void fb_edid_to_monspecs(unsigned char *edid, struct fb_monspecs *specs)
 {
-	specs = NULL;
 }
 void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs)
 {
Signature · 1 line
2.9.0