summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/bcm3510.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2017-05-18 13:13:28 +0200
committerMauro Carvalho Chehab2017-05-19 12:10:03 +0200
commit06eeefe8e310bf955da7f82547c72c43e4653d97 (patch)
tree59439c44354116dfcbff87d26f3bb18ebdf877e7 /drivers/media/dvb-frontends/bcm3510.c
parent[media] dvb-usb-remote: don't write bogus debug messages (diff)
downloadkernel-qcow2-linux-06eeefe8e310bf955da7f82547c72c43e4653d97.tar.gz
kernel-qcow2-linux-06eeefe8e310bf955da7f82547c72c43e4653d97.tar.xz
kernel-qcow2-linux-06eeefe8e310bf955da7f82547c72c43e4653d97.zip
[media] media drivers: annotate fall-through
Avoid warnings like those: drivers/media/pci/ddbridge/ddbridge-core.c: In function 'dvb_input_detach': drivers/media/pci/ddbridge/ddbridge-core.c:787:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (input->fe) { ^ drivers/media/pci/ddbridge/ddbridge-core.c:792:2: note: here case 4: ^~~~ ... On several cases, it is just that gcc 7.1 is not capable of understanding the comment, but on other places, we need an annotation. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/bcm3510.c')
-rw-r--r--drivers/media/dvb-frontends/bcm3510.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/bcm3510.c b/drivers/media/dvb-frontends/bcm3510.c
index 30cfc0f2b575..ba63ad170d3c 100644
--- a/drivers/media/dvb-frontends/bcm3510.c
+++ b/drivers/media/dvb-frontends/bcm3510.c
@@ -773,7 +773,8 @@ static int bcm3510_init(struct dvb_frontend* fe)
deb_info("attempting to download firmware\n");
if ((ret = bcm3510_init_cold(st)) < 0)
return ret;
- case JDEC_EEPROM_LOAD_WAIT: /* fall-through is wanted */
+ /* fall-through */
+ case JDEC_EEPROM_LOAD_WAIT:
deb_info("firmware is loaded\n");
bcm3510_check_firmware_version(st);
break;