nvme-fabrics: remove unnecessary braces for case
Braces are not required for enum value NVME_SC_CONNECT_INVALID_PARAM when used on the switch-case statement, remove the braces. Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
72b3eab456
commit
581f19dd72
@ -271,7 +271,7 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl,
|
||||
int err_sctype = errval & ~NVME_SC_DNR;
|
||||
|
||||
switch (err_sctype) {
|
||||
case (NVME_SC_CONNECT_INVALID_PARAM):
|
||||
case NVME_SC_CONNECT_INVALID_PARAM:
|
||||
if (offset >> 16) {
|
||||
char *inv_data = "Connect Invalid Data Parameter";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user