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 <gustavo@embeddedor.com> Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent aa00d40 commit f905311

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)