cifs: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by explicitly adding multiple break/goto statements instead of just letting the code fall through to the next case. Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
2c85ebc57b
commit
21ac58f495
@ -771,6 +771,7 @@ cifs_get_file_info(struct file *filp)
|
|||||||
*/
|
*/
|
||||||
rc = 0;
|
rc = 0;
|
||||||
CIFS_I(inode)->time = 0;
|
CIFS_I(inode)->time = 0;
|
||||||
|
goto cgfi_exit;
|
||||||
default:
|
default:
|
||||||
goto cgfi_exit;
|
goto cgfi_exit;
|
||||||
}
|
}
|
||||||
|
@ -812,6 +812,7 @@ cifs_select_sectype(struct TCP_Server_Info *server, enum securityEnum requested)
|
|||||||
return NTLMv2;
|
return NTLMv2;
|
||||||
if (global_secflags & CIFSSEC_MAY_NTLM)
|
if (global_secflags & CIFSSEC_MAY_NTLM)
|
||||||
return NTLM;
|
return NTLM;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -246,6 +246,7 @@ smbd_qp_async_error_upcall(struct ib_event *event, void *context)
|
|||||||
case IB_EVENT_CQ_ERR:
|
case IB_EVENT_CQ_ERR:
|
||||||
case IB_EVENT_QP_FATAL:
|
case IB_EVENT_QP_FATAL:
|
||||||
smbd_disconnect_rdma_connection(info);
|
smbd_disconnect_rdma_connection(info);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user