Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chaitanya Kulkarni and committed by
Christoph Hellwig
581f19dd 72b3eab4

+1 -1
+1 -1
drivers/nvme/host/fabrics.c
··· 271 271 int err_sctype = errval & ~NVME_SC_DNR; 272 272 273 273 switch (err_sctype) { 274 - case (NVME_SC_CONNECT_INVALID_PARAM): 274 + case NVME_SC_CONNECT_INVALID_PARAM: 275 275 if (offset >> 16) { 276 276 char *inv_data = "Connect Invalid Data Parameter"; 277 277