Skip to content

Commit

Permalink
drm/drm_bufs.c: In switch, add break in default case
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Fabio M. De Francesco authored and Daniel Vetter committed Apr 20, 2021
1 parent 7f5b188 commit 42be7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42be7ca

Please sign in to comment.