Detail: Fixup ugly if () foo() abuse
Cosmetic change only Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
0ef1043ce8
commit
776b199e41
8
Detail.c
8
Detail.c
|
@ -141,13 +141,15 @@ int Detail(char *dev, struct context *c)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* try to load a superblock. Try sra->devs first, then try ioctl */
|
/* try to load a superblock. Try sra->devs first, then try ioctl */
|
||||||
if (st && !info) for (d = 0, subdev = sra ? sra->devs : NULL;
|
if (st && !info)
|
||||||
d < max_disks || subdev;
|
for (d = 0, subdev = sra ? sra->devs : NULL;
|
||||||
subdev ? (void)(subdev = subdev->next) : (void)(d++)){
|
d < max_disks || subdev;
|
||||||
|
subdev ? (void)(subdev = subdev->next) : (void)(d++)){
|
||||||
mdu_disk_info_t disk;
|
mdu_disk_info_t disk;
|
||||||
char *dv;
|
char *dv;
|
||||||
int fd2;
|
int fd2;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
if (subdev)
|
if (subdev)
|
||||||
disk = subdev->disk;
|
disk = subdev->disk;
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue