Re: [PATCH] video: fbdev: tridentfb: remove deadcode on unreachable case statement

From
Bartlomiej Zolnierkiewicz <hidden>
Date
2018-07-24 16:50:51
Also in
dri-devel, kernel-janitors, lkml
Reply to
Colin King, 2018-07-16
On Monday, July 16, 2018 02:44:58 PM Colin King wrote:
From: Colin Ian King <redacted>

The value of tmp being used in the switch statement has the range of
just 0..3 hence the case 4 statement can never be reached and is
deadcode and can be removed.

Detected by CoverityScan, CID#744384 ("Logically dead code")

Signed-off-by: Colin Ian King <redacted>
Patch queued for 4.19, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Thread (2 messages) 2 messages, 2 authors, last reply 2018-07-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help