omapfb: add one more "fallthrough" statement
Subsystems (2)
PATCH 1/1 omapfb: add one more "fallthrough" statement
From: Arnd Bergmann <[email protected]>
clang warns about one missing fallthrough that gcc ignores:
drivers/video/fbdev/omap/omapfb_main.c:1558:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
Add it here as well.
Signed-off-by Arnd Bergmann <[email protected]>
--- drivers/video/fbdev/omap/omapfb_main.c | 1 + 1 file changed, 1 insertion(+)
drivers/video/fbdev/omap/omapfb_main.c +1 -0
@@ -1555,6 +1555,7 @@ static void omapfb_free_resources(struct omapfb_device *fbdev, int state)case 1 :dev_set_drvdata (fbdev->dev,NULL );kfree (fbdev); + fallthrough;case 0 :/* nothing to free */ break ;
Signature · 1 line
2.29.2
Quoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
clang warns about one missing fallthrough that gcc ignores:
drivers/video/fbdev/omap/omapfb_main.c:1558:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]Add it here as well.
Signed-off-by Arnd Bergmann <[email protected]>
Reviewed-by Nathan Chancellor <[email protected]>
Quoted 19 lines
--- drivers/video/fbdev/omap/omapfb_main.c | 1 + 1 file changed, 1 insertion(+)drivers/video/fbdev/omap/omapfb_main.c +1
-0@@ -1555,6 +1555,7 @@ static void omapfb_free_resources(struct omapfb_device *fbdev, int state)case 1 :dev_set_drvdata (fbdev->dev,NULL );kfree (fbdev); + fallthrough;case 0 :/* nothing to free */ break ;Signature · 1 line
2.29.2