aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2021-10-14 11:53:20 -0500
committerSam Ravnborg <sam@ravnborg.org>2021-10-14 20:21:32 +0200
commitb7490aade5d251ad20e7a820f6f8d3eb87aa581e (patch)
treecc1ceb415d53f8cfa93a80df71306f83c6ad4514 /drivers/video/fbdev/omap
parentplatform/x86: thinkpad_acpi: Register a privacy-screen device (diff)
downloadlinux-dev-b7490aade5d251ad20e7a820f6f8d3eb87aa581e.tar.xz
linux-dev-b7490aade5d251ad20e7a820f6f8d3eb87aa581e.zip
video: omapfb: Fix fall-through warning for Clang
Fix the following fallthrough warnings: drivers/video/fbdev/omap/omapfb_main.c:1558:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] case 0: ^ drivers/video/fbdev/omap/omapfb_main.c:1558:2: note: insert 'break;' to avoid fall-through case 0: ^ break; 1 warning generated. This helps with the ongoing efforts to globally enable -Wimplicit-fallthrough for Clang. Link: https://github.com/KSPP/linux/issues/115 Link: https://lore.kernel.org/lkml/202110141005.hUjaYMEi-lkp@intel.com/ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20211014165320.GA1145571@embeddedor
Diffstat (limited to 'drivers/video/fbdev/omap')
-rw-r--r--drivers/video/fbdev/omap/omapfb_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 3d090d2d9ed9..b495c09e6102 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -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);
+ break;
case 0:
/* nothing to free */
break;