Commit a74cefd9 authored by Colin Ian King's avatar Colin Ian King Committed by Bartlomiej Zolnierkiewicz

fbmem: remove redundant assignment to err

Variable err is initialized to a value that is never read and it
is re-assigned later.  The initialization is redundant and can
be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190624223724.13629-1-colin.king@canonical.com
parent 710ae47d
...@@ -1957,7 +1957,7 @@ int fb_new_modelist(struct fb_info *info) ...@@ -1957,7 +1957,7 @@ int fb_new_modelist(struct fb_info *info)
struct list_head *pos, *n; struct list_head *pos, *n;
struct fb_modelist *modelist; struct fb_modelist *modelist;
struct fb_videomode *m, mode; struct fb_videomode *m, mode;
int err = 1; int err;
list_for_each_safe(pos, n, &info->modelist) { list_for_each_safe(pos, n, &info->modelist) {
modelist = list_entry(pos, struct fb_modelist, list); modelist = list_entry(pos, struct fb_modelist, list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment