summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intersil/orinoco/main.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-08-21 01:34:02 -0500
committerKalle Valo <kvalo@codeaurora.org>2020-08-27 16:06:57 +0300
commit07a297a9e619e4af578a74b3dada30025021b5df (patch)
treef5db4d3eb67f7acfd7ed9c8c2a9e96a842168ce8 /drivers/net/wireless/intersil/orinoco/main.c
parentf7bba4d94d539f96bfe5e9a27d4608da4d3c402f (diff)
downloadlinux-07a297a9e619e4af578a74b3dada30025021b5df.tar.bz2
orinoco: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200821063402.GA12500@embeddedor
Diffstat (limited to 'drivers/net/wireless/intersil/orinoco/main.c')
-rw-r--r--drivers/net/wireless/intersil/orinoco/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intersil/orinoco/main.c b/drivers/net/wireless/intersil/orinoco/main.c
index 00264a14e52c..a1e041c91190 100644
--- a/drivers/net/wireless/intersil/orinoco/main.c
+++ b/drivers/net/wireless/intersil/orinoco/main.c
@@ -1503,7 +1503,7 @@ void __orinoco_ev_info(struct net_device *dev, struct hermes *hw)
schedule_work(&priv->join_work);
break;
}
- /* fall through */
+ fallthrough;
case HERMES_INQ_HOSTSCAN:
case HERMES_INQ_HOSTSCAN_SYMBOL: {
/* Result of a scanning. Contains information about
@@ -1594,7 +1594,7 @@ void __orinoco_ev_info(struct net_device *dev, struct hermes *hw)
/* Ignore this frame for now */
if (priv->firmware_type == FIRMWARE_TYPE_AGERE)
break;
- /* fall through */
+ fallthrough;
default:
printk(KERN_DEBUG "%s: Unknown information frame received: "
"type 0x%04x, length %d\n", dev->name, type, len);