Skip to content

Commit 7c7ab58

Browse files
MiaoheLindavem330
authored andcommitted
net: Convert to use the fallthrough macro
Convert the uses of fallthrough comments to fallthrough macro. Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 11f920d commit 7c7ab58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

net/socket.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ int sock_wake_async(struct socket_wq *wq, int how, int band)
13251325
case SOCK_WAKE_SPACE:
13261326
if (!test_and_clear_bit(SOCKWQ_ASYNC_NOSPACE, &wq->flags))
13271327
break;
1328-
/* fall through */
1328+
fallthrough;
13291329
case SOCK_WAKE_IO:
13301330
call_kill:
13311331
kill_fasync(&wq->fasync_list, SIGIO, band);
@@ -3158,13 +3158,13 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
31583158
if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32))
31593159
return -ENOMEM;
31603160
buf_size += rule_cnt * sizeof(u32);
3161-
/* fall through */
3161+
fallthrough;
31623162
case ETHTOOL_GRXRINGS:
31633163
case ETHTOOL_GRXCLSRLCNT:
31643164
case ETHTOOL_GRXCLSRULE:
31653165
case ETHTOOL_SRXCLSRLINS:
31663166
convert_out = true;
3167-
/* fall through */
3167+
fallthrough;
31683168
case ETHTOOL_SRXCLSRLDEL:
31693169
buf_size += sizeof(struct ethtool_rxnfc);
31703170
convert_in = true;

0 commit comments

Comments
 (0)