diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-21 15:13:14 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-06-21 15:13:14 +0200 |
commit | b6bb068dbd08879ca3cc69c9ec84580b08c17b37 (patch) | |
tree | f7e719dec7b422d050dcd3784625f1806aed3c9c /drivers/video/fbdev/atmel_lcdfb.c | |
parent | b27b0017efa28217d234c23acbceadb1a71cf53a (diff) | |
download | linux-stable-b6bb068dbd08879ca3cc69c9ec84580b08c17b37.tar.gz linux-stable-b6bb068dbd08879ca3cc69c9ec84580b08c17b37.tar.bz2 linux-stable-b6bb068dbd08879ca3cc69c9ec84580b08c17b37.zip |
video: fbdev: atmel_lcdfb: remove redundant initialization to variable ret
Currently variable ret is being initialized with -ENOENT however that
value is never read and ret is being re-assigned later on. Hence this
assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev/atmel_lcdfb.c')
-rw-r--r-- | drivers/video/fbdev/atmel_lcdfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/atmel_lcdfb.c b/drivers/video/fbdev/atmel_lcdfb.c index fb117ccbeab3..930cc3f92e01 100644 --- a/drivers/video/fbdev/atmel_lcdfb.c +++ b/drivers/video/fbdev/atmel_lcdfb.c @@ -950,7 +950,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo) struct fb_videomode fb_vm; struct gpio_desc *gpiod; struct videomode vm; - int ret = -ENOENT; + int ret; int i; sinfo->config = (struct atmel_lcdfb_config*) |