Commit 7c7ab580 authored by Miaohe Lin's avatar Miaohe Lin Committed by David S. Miller

net: Convert to use the fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 11f920d2
...@@ -1325,7 +1325,7 @@ int sock_wake_async(struct socket_wq *wq, int how, int band) ...@@ -1325,7 +1325,7 @@ int sock_wake_async(struct socket_wq *wq, int how, int band)
case SOCK_WAKE_SPACE: case SOCK_WAKE_SPACE:
if (!test_and_clear_bit(SOCKWQ_ASYNC_NOSPACE, &wq->flags)) if (!test_and_clear_bit(SOCKWQ_ASYNC_NOSPACE, &wq->flags))
break; break;
/* fall through */ fallthrough;
case SOCK_WAKE_IO: case SOCK_WAKE_IO:
call_kill: call_kill:
kill_fasync(&wq->fasync_list, SIGIO, band); kill_fasync(&wq->fasync_list, SIGIO, band);
...@@ -3158,13 +3158,13 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32) ...@@ -3158,13 +3158,13 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32)) if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32))
return -ENOMEM; return -ENOMEM;
buf_size += rule_cnt * sizeof(u32); buf_size += rule_cnt * sizeof(u32);
/* fall through */ fallthrough;
case ETHTOOL_GRXRINGS: case ETHTOOL_GRXRINGS:
case ETHTOOL_GRXCLSRLCNT: case ETHTOOL_GRXCLSRLCNT:
case ETHTOOL_GRXCLSRULE: case ETHTOOL_GRXCLSRULE:
case ETHTOOL_SRXCLSRLINS: case ETHTOOL_SRXCLSRLINS:
convert_out = true; convert_out = true;
/* fall through */ fallthrough;
case ETHTOOL_SRXCLSRLDEL: case ETHTOOL_SRXCLSRLDEL:
buf_size += sizeof(struct ethtool_rxnfc); buf_size += sizeof(struct ethtool_rxnfc);
convert_in = true; convert_in = true;
......
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