Skip to content

Commit 37b8b73

Browse files
GustavoARSilvagregkh
authored andcommitted
greybus: 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 <[email protected]> Link: https://lore.kernel.org/r/20200727183258.GA28571@embeddedor Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2f79d3d commit 37b8b73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/greybus/es2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static int check_urb_status(struct urb *urb)
759759
case -EOVERFLOW:
760760
dev_err(dev, "%s: overflow actual length is %d\n",
761761
__func__, urb->actual_length);
762-
/* fall through */
762+
fallthrough;
763763
case -ECONNRESET:
764764
case -ENOENT:
765765
case -ESHUTDOWN:

drivers/greybus/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ int gb_interface_add(struct gb_interface *intf)
12331233
case GB_INTERFACE_TYPE_GREYBUS:
12341234
dev_info(&intf->dev, "GMP VID=0x%08x, PID=0x%08x\n",
12351235
intf->vendor_id, intf->product_id);
1236-
/* fall-through */
1236+
fallthrough;
12371237
case GB_INTERFACE_TYPE_UNIPRO:
12381238
dev_info(&intf->dev, "DDBL1 Manufacturer=0x%08x, Product=0x%08x\n",
12391239
intf->ddbl1_manufacturer_id,

0 commit comments

Comments
 (0)