diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2022-01-11 22:20:58 -0800 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2022-02-28 13:45:04 +0200 |
commit | 581f19dd72b9d148ce667b6dcb20d3ef16b9a1cf (patch) | |
tree | 2c2be1779fa0bcc4945238a2bec0fdce7e98dacf /drivers/nvme | |
parent | 72b3eab456ba57bf933b25e1b2adea3e3eafd153 (diff) | |
download | linux-581f19dd72b9d148ce667b6dcb20d3ef16b9a1cf.tar.bz2 |
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>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index f4aa40124720..ee79a6d639b4 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -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"; |