fbmon: remove unused function argument
Subsystems (2)
PATCH 5/126 fbmon: remove unused function argument
From: Arnd Bergmann <[email protected]>
Subject: 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.
This prevents a warning which everyone will see after "CFLAGS: add -Wunused-but-set-parameter" is merged.
Signed-off-by Arnd Bergmann <[email protected]>
Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Tomi Valkeinen <[email protected]>
Cc Alexey Dobriyan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/video/fbdev/core/fbmon.c | 1 - 1 file changed, 1 deletion(-)
drivers/video/fbdev/core/fbmon.c renamed from drivers/video/fbdev/core/fbmon.c~fbmon-remove-unused-function-argument +0 -1
@@ -1496,7 +1496,6 @@ int fb_parse_edid(unsigned char *edid, s }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) {
_