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>
This commit is contained in:
Colin Ian King 2019-06-21 15:13:14 +02:00 коммит произвёл Bartlomiej Zolnierkiewicz
Родитель b27b0017ef
Коммит b6bb068dbd
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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*)