projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8633ef8
)
video: fbdev: arcfb: remove redundant initialization of variable err
author
Colin Ian King
<colin.king@canonical.com>
Wed, 21 Jul 2021 10:26:08 +0000
(11:26 +0100)
committer
Sam Ravnborg
<sam@ravnborg.org>
Wed, 21 Jul 2021 11:09:21 +0000
(13:09 +0200)
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
drivers/video/fbdev/arcfb.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/arcfb.c
b/drivers/video/fbdev/arcfb.c
index 1447324ed0b643e26da608176f57dc95a1a5e369..45e64016db3280e82b6aac086a981cb4ebe29c67 100644
(file)
--- 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;