summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/core
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-06-25 00:37:24 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-07-23 17:14:22 +0200
commita74cefd915124a16a2956773c30addc58e344047 (patch)
tree273634c11b6c5692db5df80771ef44311024d0d9 /drivers/video/fbdev/core
parentdrm/tinydrm: Move tinydrm_display_pipe_init() to mipi-dbi (diff)
downloadlinux-a74cefd915124a16a2956773c30addc58e344047.tar.xz
linux-a74cefd915124a16a2956773c30addc58e344047.zip
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
Diffstat (limited to 'drivers/video/fbdev/core')
-rw-r--r--drivers/video/fbdev/core/fbmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/core/fbmem.c b/drivers/video/fbdev/core/fbmem.c
index 64dd732021d8..00fe0efeaee9 100644
--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c
@@ -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);