video: fbdev: atmel_lcdfb: remove redundant initialization to variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 21 Jun 2019 13:13:14 +0000 (15:13 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 21 Jun 2019 13:13:14 +0000 (15:13 +0200)
commitb6bb068dbd08879ca3cc69c9ec84580b08c17b37
treef7e719dec7b422d050dcd3784625f1806aed3c9c
parentb27b0017efa28217d234c23acbceadb1a71cf53a
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>
drivers/video/fbdev/atmel_lcdfb.c