fbmem: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Mon, 24 Jun 2019 22:37:24 +0000 (23:37 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 23 Jul 2019 15:14:22 +0000 (17:14 +0200)
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
drivers/video/fbdev/core/fbmem.c

index 64dd732021d8de2536b68708c688737d3fabd5b4..00fe0efeaee9e4f44f0ee125585da8e12872191d 100644 (file)
@@ -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);