Skip to content

Commit 5994521

Browse files
ColinIanKinghdeller
authored andcommitted
fbdev: udlfb: Remove redundant initialization to variable identical
The variable identical is being initialized with a value that is never read. The variable is being re-assigned later on. The initialization is redundant and can be removed. Cleans up clang scan-build warning: drivers/video/fbdev/udlfb.c:373:6: warning: Value stored to 'identical' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent e8bc52c commit 5994521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/fbdev/udlfb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static int dlfb_trim_hline(const u8 *bback, const u8 **bfront, int *width_bytes)
370370
const unsigned long *back = (const unsigned long *) bback;
371371
const unsigned long *front = (const unsigned long *) *bfront;
372372
const int width = *width_bytes / sizeof(unsigned long);
373-
int identical = width;
373+
int identical;
374374
int start = width;
375375
int end = width;
376376

0 commit comments

Comments
 (0)