Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Convert to use the fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Miaohe Lin and committed by
David S. Miller
7c7ab580 11f920d2

+3 -3
+3 -3
net/socket.c
··· 1325 1325 case SOCK_WAKE_SPACE: 1326 1326 if (!test_and_clear_bit(SOCKWQ_ASYNC_NOSPACE, &wq->flags)) 1327 1327 break; 1328 - /* fall through */ 1328 + fallthrough; 1329 1329 case SOCK_WAKE_IO: 1330 1330 call_kill: 1331 1331 kill_fasync(&wq->fasync_list, SIGIO, band); ··· 3158 3158 if (rule_cnt > KMALLOC_MAX_SIZE / sizeof(u32)) 3159 3159 return -ENOMEM; 3160 3160 buf_size += rule_cnt * sizeof(u32); 3161 - /* fall through */ 3161 + fallthrough; 3162 3162 case ETHTOOL_GRXRINGS: 3163 3163 case ETHTOOL_GRXCLSRLCNT: 3164 3164 case ETHTOOL_GRXCLSRULE: 3165 3165 case ETHTOOL_SRXCLSRLINS: 3166 3166 convert_out = true; 3167 - /* fall through */ 3167 + fallthrough; 3168 3168 case ETHTOOL_SRXCLSRLDEL: 3169 3169 buf_size += sizeof(struct ethtool_rxnfc); 3170 3170 convert_in = true;