Commit 71ae2cb3 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

net: plip: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case.

Link: https://github.com/KSPP/linux/issues/115Signed-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 90d181ca
...@@ -516,6 +516,7 @@ plip_receive(unsigned short nibble_timeout, struct net_device *dev, ...@@ -516,6 +516,7 @@ plip_receive(unsigned short nibble_timeout, struct net_device *dev,
*data_p |= (c0 << 1) & 0xf0; *data_p |= (c0 << 1) & 0xf0;
write_data (dev, 0x00); /* send ACK */ write_data (dev, 0x00); /* send ACK */
*ns_p = PLIP_NB_BEGIN; *ns_p = PLIP_NB_BEGIN;
break;
case PLIP_NB_2: case PLIP_NB_2:
break; break;
} }
...@@ -808,6 +809,7 @@ plip_send_packet(struct net_device *dev, struct net_local *nl, ...@@ -808,6 +809,7 @@ plip_send_packet(struct net_device *dev, struct net_local *nl,
return HS_TIMEOUT; return HS_TIMEOUT;
} }
} }
break;
case PLIP_PK_LENGTH_LSB: case PLIP_PK_LENGTH_LSB:
if (plip_send(nibble_timeout, dev, if (plip_send(nibble_timeout, dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment