diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-04-12 17:05:55 -0400 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-04-12 17:05:55 -0400 |
commit | 776b199e41d10e344efc47008366ca46715c5acc (patch) | |
tree | 33491ba0d4b77884fc2c1c618e455be1b368af79 /Detail.c | |
parent | 0ef1043ce8dd3f36c7227aa4a260819c4c17c78d (diff) | |
download | mdadm-776b199e41d10e344efc47008366ca46715c5acc.tar.gz |
Detail: Fixup ugly if () foo() abuse
Cosmetic change only
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -141,13 +141,15 @@ int Detail(char *dev, struct context *c) } /* try to load a superblock. Try sra->devs first, then try ioctl */ - if (st && !info) for (d = 0, subdev = sra ? sra->devs : NULL; - d < max_disks || subdev; - subdev ? (void)(subdev = subdev->next) : (void)(d++)){ + if (st && !info) + for (d = 0, subdev = sra ? sra->devs : NULL; + d < max_disks || subdev; + subdev ? (void)(subdev = subdev->next) : (void)(d++)){ mdu_disk_info_t disk; char *dv; int fd2; int err; + if (subdev) disk = subdev->disk; else { |