Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] s2255drv: avoid a switch fall through

On this driver, it can fall through a switch. I tried to
annotate it, in order to shut up a gcc warning, but that
didn't work, as the logic there is somewhat complex.

So, instead, let's just repeat the code. gcc should likely
optimize it anyway, and this makes the code better readable,
IMHO.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

+2
+2
drivers/media/usb/s2255/s2255drv.c
··· 1803 1803 default: 1804 1804 pr_info("s2255 unknown resp\n"); 1805 1805 } 1806 + pdata++; 1807 + break; 1806 1808 default: 1807 1809 pdata++; 1808 1810 break;