Blame SOURCES/0050-Fix-up-a-few-formatting-issues.patch

8e8941
From 9cf361f8791d86aaced821c19af556819bc03732 Mon Sep 17 00:00:00 2001
8e8941
From: Jes Sorensen <jsorensen@fb.com>
8e8941
Date: Wed, 27 Nov 2019 11:33:15 -0500
8e8941
Subject: [RHEL8.2 PATCH 50/61] Fix up a few formatting issues
8e8941
8e8941
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
8e8941
---
8e8941
 Manage.c | 13 +++++++++----
8e8941
 1 file changed, 9 insertions(+), 4 deletions(-)
8e8941
8e8941
diff --git a/Manage.c b/Manage.c
8e8941
index deeba2b..b22c396 100644
8e8941
--- a/Manage.c
8e8941
+++ b/Manage.c
8e8941
@@ -1728,8 +1728,10 @@ int move_spare(char *from_devname, char *to_devname, dev_t devid)
8e8941
 	int fd2 = open(from_devname, O_RDONLY);
8e8941
 
8e8941
 	if (fd1 < 0 || fd2 < 0) {
8e8941
-		if (fd1>=0) close(fd1);
8e8941
-		if (fd2>=0) close(fd2);
8e8941
+		if (fd1 >= 0)
8e8941
+			close(fd1);
8e8941
+		if (fd2 >= 0)
8e8941
+			close(fd2);
8e8941
 		return 0;
8e8941
 	}
8e8941
 
8e8941
@@ -1743,7 +1745,8 @@ int move_spare(char *from_devname, char *to_devname, dev_t devid)
8e8941
 	devlist.disposition = 'r';
8e8941
 	if (Manage_subdevs(from_devname, fd2, &devlist, -1, 0, NULL, 0) == 0) {
8e8941
 		devlist.disposition = 'a';
8e8941
-		if (Manage_subdevs(to_devname, fd1, &devlist, -1, 0, NULL, 0) == 0) {
8e8941
+		if (Manage_subdevs(to_devname, fd1, &devlist, -1, 0,
8e8941
+				   NULL, 0) == 0) {
8e8941
 			/* make sure manager is aware of changes */
8e8941
 			ping_manager(to_devname);
8e8941
 			ping_manager(from_devname);
8e8941
@@ -1751,7 +1754,9 @@ int move_spare(char *from_devname, char *to_devname, dev_t devid)
8e8941
 			close(fd2);
8e8941
 			return 1;
8e8941
 		}
8e8941
-		else Manage_subdevs(from_devname, fd2, &devlist, -1, 0, NULL, 0);
8e8941
+		else
8e8941
+			Manage_subdevs(from_devname, fd2, &devlist,
8e8941
+				       -1, 0, NULL, 0);
8e8941
 	}
8e8941
 	close(fd1);
8e8941
 	close(fd2);
8e8941
-- 
8e8941
2.7.5
8e8941