Blame SOURCES/mdadm-Fix-broken-formatting1.patch

b7f731
From b831b299e864224b389743d8a435d6629ee674e3 Mon Sep 17 00:00:00 2001
b7f731
From: Jes Sorensen <jsorensen@fb.com>
b7f731
Date: Tue, 16 May 2017 14:04:22 -0400
b7f731
Subject: [RHEL7.5 PATCH 144/169] mdadm: Fix '==' broken formatting
b7f731
b7f731
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
b7f731
---
b7f731
 Detail.c      |  6 +++---
b7f731
 config.c      |  4 ++--
b7f731
 managemon.c   |  4 ++--
b7f731
 super-ddf.c   | 16 ++++++++--------
b7f731
 super-intel.c |  2 +-
b7f731
 5 files changed, 16 insertions(+), 16 deletions(-)
b7f731
b7f731
diff --git a/Detail.c b/Detail.c
b7f731
index ef2370c..bf881ff 100644
b7f731
--- a/Detail.c
b7f731
+++ b/Detail.c
b7f731
@@ -714,9 +714,9 @@ This is pretty boring
b7f731
 			if (disk.state & (1 << MD_DISK_JOURNAL))
b7f731
 				printf(" journal");
b7f731
 			if ((disk.state &
b7f731
-			     ((1<
b7f731
-			      |(1<
b7f731
-			    == 0) {
b7f731
+			     ((1 << MD_DISK_ACTIVE) | (1 << MD_DISK_SYNC) |
b7f731
+			      (1 << MD_DISK_REMOVED) | (1 << MD_DISK_FAULTY) |
b7f731
+			      (1 << MD_DISK_JOURNAL))) == 0) {
b7f731
 				printf(" spare");
b7f731
 				if (disk.raid_disk < array.raid_disks &&
b7f731
 				    disk.raid_disk >= 0)
b7f731
diff --git a/config.c b/config.c
b7f731
index 9b008e3..48e0278 100644
b7f731
--- a/config.c
b7f731
+++ b/config.c
b7f731
@@ -1118,8 +1118,8 @@ struct mddev_ident *conf_match(struct supertype *st,
b7f731
 	match = NULL;
b7f731
 	for (; array_list; array_list = array_list->next) {
b7f731
 		if (array_list->uuid_set &&
b7f731
-		    same_uuid(array_list->uuid, info->uuid, st->ss->swapuuid)
b7f731
-		    == 0) {
b7f731
+		    same_uuid(array_list->uuid, info->uuid,
b7f731
+			      st->ss->swapuuid) == 0) {
b7f731
 			if (verbose >= 2 && array_list->devname)
b7f731
 				pr_err("UUID differs from %s.\n",
b7f731
 				       array_list->devname);
b7f731
diff --git a/managemon.c b/managemon.c
b7f731
index 0a33fc9..a8df666 100644
b7f731
--- a/managemon.c
b7f731
+++ b/managemon.c
b7f731
@@ -580,8 +580,8 @@ static void manage_member(struct mdstat_ent *mdstat,
b7f731
 			usleep(15*1000);
b7f731
 		}
b7f731
 		replace_array(container, a, newa);
b7f731
-		if (sysfs_set_str(&a->info, NULL, "sync_action", "recover")
b7f731
-		    == 0)
b7f731
+		if (sysfs_set_str(&a->info, NULL,
b7f731
+				  "sync_action", "recover") == 0)
b7f731
 			newa->prev_action = recover;
b7f731
 		dprintf("recovery started on %s\n", a->info.sys_name);
b7f731
  out:
b7f731
diff --git a/super-ddf.c b/super-ddf.c
b7f731
index 4da7c09..c233601 100644
b7f731
--- a/super-ddf.c
b7f731
+++ b/super-ddf.c
b7f731
@@ -1883,8 +1883,8 @@ static struct vd_config *find_vdcr(struct ddf_super *ddf, unsigned int inst,
b7f731
 		nsec = n / be16_to_cpu(conf->prim_elmnt_count);
b7f731
 		if (conf->sec_elmnt_seq != nsec) {
b7f731
 			for (ibvd = 1; ibvd < conf->sec_elmnt_count; ibvd++) {
b7f731
-				if (v->other_bvds[ibvd-1]->sec_elmnt_seq
b7f731
-				    == nsec)
b7f731
+				if (v->other_bvds[ibvd-1]->sec_elmnt_seq ==
b7f731
+				    nsec)
b7f731
 					break;
b7f731
 			}
b7f731
 			if (ibvd == conf->sec_elmnt_count)
b7f731
@@ -3814,13 +3814,13 @@ static struct mdinfo *container_content_ddf(struct supertype *st, char *subarray
b7f731
 			unsigned int iphys;
b7f731
 			int stt;
b7f731
 
b7f731
-			if (be32_to_cpu(ddf->phys->entries[pd].refnum)
b7f731
-			    == 0xFFFFFFFF)
b7f731
+			if (be32_to_cpu(ddf->phys->entries[pd].refnum) ==
b7f731
+			    0xffffffff)
b7f731
 				continue;
b7f731
 
b7f731
 			stt = be16_to_cpu(ddf->phys->entries[pd].state);
b7f731
-			if ((stt & (DDF_Online|DDF_Failed|DDF_Rebuilding))
b7f731
-			    != DDF_Online)
b7f731
+			if ((stt & (DDF_Online|DDF_Failed|DDF_Rebuilding)) !=
b7f731
+			    DDF_Online)
b7f731
 				continue;
b7f731
 
b7f731
 			i = get_pd_index_from_refnum(
b7f731
@@ -4205,8 +4205,8 @@ static int get_bvd_state(const struct ddf_super *ddf,
b7f731
 		if (pd < 0)
b7f731
 			continue;
b7f731
 		st = be16_to_cpu(ddf->phys->entries[pd].state);
b7f731
-		if ((st & (DDF_Online|DDF_Failed|DDF_Rebuilding))
b7f731
-		    == DDF_Online) {
b7f731
+		if ((st & (DDF_Online|DDF_Failed|DDF_Rebuilding)) ==
b7f731
+		    DDF_Online) {
b7f731
 			working++;
b7f731
 			avail[i] = 1;
b7f731
 		}
b7f731
diff --git a/super-intel.c b/super-intel.c
b7f731
index 3d0a37c..51b7cc3 100644
b7f731
--- a/super-intel.c
b7f731
+++ b/super-intel.c
b7f731
@@ -4023,7 +4023,7 @@ static void migrate(struct imsm_dev *dev, struct intel_super *super,
b7f731
 
b7f731
 	/* duplicate and then set the target end state in map[0] */
b7f731
 	memcpy(dest, src, sizeof_imsm_map(src));
b7f731
-	if (migr_type == MIGR_REBUILD || migr_type ==  MIGR_GEN_MIGR) {
b7f731
+	if (migr_type == MIGR_REBUILD || migr_type == MIGR_GEN_MIGR) {
b7f731
 		__u32 ord;
b7f731
 		int i;
b7f731
 
b7f731
-- 
b7f731
2.7.4
b7f731