dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/Detail-Fixup-ugly-if-foo-abuse.patch

b7f731
From 776b199e41d10e344efc47008366ca46715c5acc Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <jsorensen@fb.com>
b7f731
Date: Wed, 12 Apr 2017 17:05:55 -0400
b7f731
Subject: [RHEL7.5 PATCH 078/169] Detail: Fixup ugly if () foo() abuse
b7f731
b7f731
Cosmetic change only
b7f731
b7f731
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
b7f731
---
b7f731
 Detail.c | 8 +++++---
b7f731
 1 file changed, 5 insertions(+), 3 deletions(-)
b7f731
b7f731
diff --git a/Detail.c b/Detail.c
b7f731
index 8f74832..e40cd8f 100644
b7f731
--- a/Detail.c
b7f731
+++ b/Detail.c
b7f731
@@ -141,13 +141,15 @@ int Detail(char *dev, struct context *c)
b7f731
 	}
b7f731
 
b7f731
 	/* try to load a superblock. Try sra->devs first, then try ioctl */
b7f731
-	if (st && !info) for (d = 0, subdev = sra ? sra->devs : NULL;
b7f731
-			      d < max_disks || subdev;
b7f731
-			      subdev ? (void)(subdev = subdev->next) : (void)(d++)){
b7f731
+	if (st && !info)
b7f731
+		for (d = 0, subdev = sra ? sra->devs : NULL;
b7f731
+		     d < max_disks || subdev;
b7f731
+		     subdev ? (void)(subdev = subdev->next) : (void)(d++)){
b7f731
 		mdu_disk_info_t disk;
b7f731
 		char *dv;
b7f731
 		int fd2;
b7f731
 		int err;
b7f731
+
b7f731
 		if (subdev)
b7f731
 			disk = subdev->disk;
b7f731
 		else {
b7f731
-- 
b7f731
2.7.4
b7f731