mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
media: usb: dvb-usb-v2: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding a couple of break statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
af7ab66225
commit
623cd8b13f
2 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ static int af9015_ctrl_msg(struct dvb_usb_device *d, struct req_t *req)
|
|||
if (((req->addr & 0xff00) == 0xff00) ||
|
||||
((req->addr & 0xff00) == 0xae00))
|
||||
state->buf[0] = WRITE_VIRTUAL_MEMORY;
|
||||
break;
|
||||
case WRITE_VIRTUAL_MEMORY:
|
||||
case COPY_FIRMWARE:
|
||||
case DOWNLOAD_FIRMWARE:
|
||||
|
|
|
@ -336,6 +336,7 @@ static void lme2510_int_response(struct urb *lme_urb)
|
|||
st->signal_level = ibuf[5];
|
||||
st->signal_sn = ibuf[4];
|
||||
st->time_key = ibuf[7];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue