summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio M. De Francesco <fmdefrancesco@gmail.com>2021-04-17 18:15:52 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2021-04-20 10:54:22 +0200
commit42be7ca1fdc99dda43521ed6024c0959600edaba (patch)
tree10b58d7ffbd7ae9d5c13f4efb0fa3b9e5c4b8d3c
parent7f5b18889d077b724dc50b891ae3bc2f10ab3756 (diff)
downloadlinux-42be7ca1fdc99dda43521ed6024c0959600edaba.tar.bz2
drm/drm_bufs.c: In switch, add break in default case
Added a "break" in the default case of a switch select statement. GCC complains, although this "break" is not strictly necessary for the code to work as expected. Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20210417161552.6571-1-fmdefrancesco@gmail.com
-rw-r--r--drivers/gpu/drm/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_bufs.c b/drivers/gpu/drm/drm_bufs.c
index e3d77dfefb0a..fc40aa0adf73 100644
--- a/drivers/gpu/drm/drm_bufs.c
+++ b/drivers/gpu/drm/drm_bufs.c
@@ -79,7 +79,7 @@ static struct drm_map_list *drm_find_matching_map(struct drm_device *dev,
return entry;
break;
default: /* Make gcc happy */
- ;
+ break;
}
if (entry->map->offset == map->offset)
return entry;