Skip to content

Commit f905311

Browse files
GustavoARSilvadavem330
authored andcommitted
rds: send: mark expected switch fall-through in rds_rm_size
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 1465362 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <[email protected]> Acked-by: Sowmini Varadhan <[email protected]> Acked-by: Santosh Shilimkar <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent aa00d40 commit f905311

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/rds/send.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,8 @@ static int rds_rm_size(struct msghdr *msg, int num_sgs)
902902

903903
case RDS_CMSG_ZCOPY_COOKIE:
904904
zcopy_cookie = true;
905+
/* fall through */
906+
905907
case RDS_CMSG_RDMA_DEST:
906908
case RDS_CMSG_RDMA_MAP:
907909
cmsg_groups |= 2;

0 commit comments

Comments
 (0)