mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
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: Colin Ian King <colin.king@canonical.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190624223724.13629-1-colin.king@canonical.com
This commit is contained in:
parent
710ae47dc6
commit
a74cefd915
|
|
@ -1957,7 +1957,7 @@ int fb_new_modelist(struct fb_info *info)
|
|||
struct list_head *pos, *n;
|
||||
struct fb_modelist *modelist;
|
||||
struct fb_videomode *m, mode;
|
||||
int err = 1;
|
||||
int err;
|
||||
|
||||
list_for_each_safe(pos, n, &info->modelist) {
|
||||
modelist = list_entry(pos, struct fb_modelist, list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user