Skip to content

Commit

Permalink
cifs: Convert to use the fallthrough macro
Browse files Browse the repository at this point in the history
Convert the uses of fallthrough comments to fallthrough macro.

Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
  • Loading branch information
Miaohe Lin authored and Steve French committed Aug 10, 2020
1 parent 20b135e commit 30b5ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/smb2pdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3913,7 +3913,7 @@ smb2_readv_callback(struct mid_q_entry *mid)
case MID_RESPONSE_MALFORMED:
credits.value = le16_to_cpu(shdr->CreditRequest);
credits.instance = server->reconnect_instance;
/* fall through */
fallthrough;
default:
rdata->result = -EIO;
}
Expand Down Expand Up @@ -4146,7 +4146,7 @@ smb2_writev_callback(struct mid_q_entry *mid)
case MID_RESPONSE_MALFORMED:
credits.value = le16_to_cpu(rsp->sync_hdr.CreditRequest);
credits.instance = server->reconnect_instance;
/* fall through */
fallthrough;
default:
wdata->result = -EIO;
break;
Expand Down

0 comments on commit 30b5ae2

Please sign in to comment.