Detail: Fixup ugly if () foo() abuse

Cosmetic change only

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
Jes Sorensen 2017-04-12 17:05:55 -04:00
parent 0ef1043ce8
commit 776b199e41
1 changed files with 5 additions and 3 deletions

View File

@ -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 {