[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240201063404.772797-3-linan666@huaweicloud.com>
Date: Thu, 1 Feb 2024 14:33:58 +0800
From: linan666@...weicloud.com
To: song@...nel.org,
neilb@...e.com,
mariusz.tkaczyk@...ux.intel.com,
shli@...com
Cc: linux-raid@...r.kernel.org,
linux-kernel@...r.kernel.org,
linan666@...weicloud.com,
yukuai3@...wei.com,
yi.zhang@...wei.com,
houtao1@...wei.com,
yangerkun@...wei.com
Subject: [PATCH v5 2/8] md: changed the switch of RAID_VERSION to if
From: Li Nan <linan122@...wei.com>
There is only one case of this 'switch'. Change it to 'if'.
Signed-off-by: Li Nan <linan122@...wei.com>
---
drivers/md/md.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 1b509fb82040..3b4e0ef49675 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7636,11 +7636,9 @@ static int md_ioctl(struct block_device *bdev, blk_mode_t mode,
* Commands dealing with the RAID driver but not any
* particular array:
*/
- switch (cmd) {
- case RAID_VERSION:
+ if (cmd == RAID_VERSION) {
err = get_version(argp);
goto out;
- default:;
}
/*
--
2.39.2
Powered by blists - more mailing lists