From: Colin Ian King Date: Wed, 21 Jul 2021 10:26:08 +0000 (+0100) Subject: video: fbdev: arcfb: remove redundant initialization of variable err X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=99279ad8feb9142ab03f9651c2401c1b3807857b;p=kernel.git video: fbdev: arcfb: remove redundant initialization of variable err The variable err is being initialized with a value that is never read, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Signed-off-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20210721102608.42694-1-colin.king@canonical.com --- diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c index 1447324ed0b64..45e64016db328 100644 --- a/drivers/video/fbdev/arcfb.c +++ b/drivers/video/fbdev/arcfb.c @@ -446,7 +446,7 @@ static ssize_t arcfb_write(struct fb_info *info, const char __user *buf, /* modded from epson 1355 */ unsigned long p; - int err=-EINVAL; + int err; unsigned int fbmemlength,x,y,w,h, bitppos, startpos, endpos, bitcount; struct arcfb_par *par; unsigned int xres;