aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/catc.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-06-28 13:50:48 -0500
committerDavid S. Miller <davem@davemloft.net>2018-06-30 20:47:16 +0900
commit9ca78674eb6a19acbb1d69e86273ebd1d3edf087 (patch)
tree9bf053d0cc2b9f987e5272b8a90fde25481ce1eb /drivers/net/usb/catc.c
parentnet: phy: realtek: add support for RTL8211 (diff)
downloadlinux-dev-9ca78674eb6a19acbb1d69e86273ebd1d3edf087.tar.xz
linux-dev-9ca78674eb6a19acbb1d69e86273ebd1d3edf087.zip
net: usb: Mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/catc.c')
-rw-r--r--drivers/net/usb/catc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c
index 18d36dff97ea..424053bd8b21 100644
--- a/drivers/net/usb/catc.c
+++ b/drivers/net/usb/catc.c
@@ -869,6 +869,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id
default:
dev_warn(&intf->dev,
"Couldn't detect memory size, assuming 32k\n");
+ /* fall through */
case 0x87654321:
catc_set_reg(catc, TxBufCount, 4);
catc_set_reg(catc, RxBufCount, 16);