Commit 256ff2ef authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

ray_cs: Use fallthrough pseudo-keyword

In order to enable -Wimplicit-fallthrough for Clang[1], replace the
existing /* fall through */ comments with the new pseudo-keyword
macro fallthrough[2].

[1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10
[2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-throughSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201008220422.GA6926@embeddedor
parent 7eae0518
...@@ -877,10 +877,10 @@ static int ray_hw_xmit(unsigned char *data, int len, struct net_device *dev, ...@@ -877,10 +877,10 @@ static int ray_hw_xmit(unsigned char *data, int len, struct net_device *dev,
switch (ccsindex = get_free_tx_ccs(local)) { switch (ccsindex = get_free_tx_ccs(local)) {
case ECCSBUSY: case ECCSBUSY:
pr_debug("ray_hw_xmit tx_ccs table busy\n"); pr_debug("ray_hw_xmit tx_ccs table busy\n");
/* fall through */ fallthrough;
case ECCSFULL: case ECCSFULL:
pr_debug("ray_hw_xmit No free tx ccs\n"); pr_debug("ray_hw_xmit No free tx ccs\n");
/* fall through */ fallthrough;
case ECARDGONE: case ECARDGONE:
netif_stop_queue(dev); netif_stop_queue(dev);
return XMIT_NO_CCS; return XMIT_NO_CCS;
...@@ -1272,7 +1272,7 @@ static int ray_set_mode(struct net_device *dev, struct iw_request_info *info, ...@@ -1272,7 +1272,7 @@ static int ray_set_mode(struct net_device *dev, struct iw_request_info *info,
switch (wrqu->mode) { switch (wrqu->mode) {
case IW_MODE_ADHOC: case IW_MODE_ADHOC:
card_mode = 0; card_mode = 0;
/* Fall through */ fallthrough;
case IW_MODE_INFRA: case IW_MODE_INFRA:
local->sparm.b5.a_network_type = card_mode; local->sparm.b5.a_network_type = card_mode;
break; break;
......
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