nvme-fabrics: remove unnecessary braces for case
authorChaitanya Kulkarni <kch@nvidia.com>
Wed, 12 Jan 2022 06:20:58 +0000 (22:20 -0800)
committerChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:45:04 +0000 (13:45 +0200)
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>
drivers/nvme/host/fabrics.c

index f4aa401..ee79a6d 100644 (file)
@@ -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";