md.c: re-indent various 'switch' statements.
Intent was unnecessarily deep. Also change one 'switch' which has a single case element, into an 'if'. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
@@ -6347,8 +6347,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
* Commands dealing with the RAID driver but not any
|
||||
* particular array:
|
||||
*/
|
||||
switch (cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case RAID_VERSION:
|
||||
err = get_version(argp);
|
||||
goto done;
|
||||
@@ -6411,10 +6410,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
goto abort;
|
||||
}
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case SET_ARRAY_INFO:
|
||||
{
|
||||
if (cmd == SET_ARRAY_INFO) {
|
||||
mdu_array_info_t info;
|
||||
if (!arg)
|
||||
memset(&info, 0, sizeof(info));
|
||||
@@ -6451,10 +6447,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
" array info. %d\n", err);
|
||||
goto abort_unlock;
|
||||
}
|
||||
}
|
||||
goto done_unlock;
|
||||
|
||||
default:;
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -6473,8 +6466,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
/*
|
||||
* Commands even a read-only array can execute:
|
||||
*/
|
||||
switch (cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case GET_BITMAP_FILE:
|
||||
err = get_bitmap_file(mddev, argp);
|
||||
goto done_unlock;
|
||||
@@ -6540,8 +6532,7 @@ static int md_ioctl(struct block_device *bdev, fmode_t mode,
|
||||
}
|
||||
}
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
switch (cmd) {
|
||||
case ADD_NEW_DISK:
|
||||
{
|
||||
mdu_disk_info_t info;
|
||||
|
Reference in New Issue
Block a user