diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-07-21 11:26:08 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2021-07-21 13:09:21 +0200 |
commit | 99279ad8feb9142ab03f9651c2401c1b3807857b (patch) | |
tree | 65896709f02e063c2e522125801668f2a7fdd277 /drivers/video | |
parent | 8633ef82f101c040427b57d4df7b706261420b94 (diff) | |
download | linux-99279ad8feb9142ab03f9651c2401c1b3807857b.tar.bz2 |
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 <colin.king@canonical.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210721102608.42694-1-colin.king@canonical.com
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/arcfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/arcfb.c b/drivers/video/fbdev/arcfb.c index 1447324ed0b6..45e64016db32 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; |