Skip to contentSkip to conversation

md/raid0: remove empty line printk from dump_zones

PATCH In review Michał Pecio 2 participants 2 messages Apr 24, 2016 – Apr 25, 2016 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md/raid0: remove empty line printk from dump_zones

Remove the final printk. All preceding output is already properly newline-terminated and the printk isn't even KERN_CONT to begin with, so it only adds one empty line to the log.

---
 drivers/md/raid0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/raid0.c +0 -1
index f8e5db0..3e51f4d 100644
@@ -70,7 +70,6 @@ static void dump_zones(struct mddev *mddev)
 			(unsigned long long)zone_size>>1);
 		zone_start = conf->strip_zone[j].zone_end;
 	}
-	printk(KERN_INFO "\n");
 }
 
 static int create_strip_zones(struct mddev *mddev, struct r0conf **private_conf)
#1 lore raw
Quoted 15 lines · Michał Pecio

Remove the final printk. All preceding output is already properly newline-terminated and the printk isn't even KERN_CONT to begin with, so it only adds one empty line to the log.

---
 drivers/md/raid0.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/raid0.c +0 -0
index f8e5db0..3e51f4d 100644

drivers/md/raid0.c static void dump_zones(struct mddev *mddev) · line 73

Quoted 5 lines
drivers/md/raid0.c +0 -1
@@ -70,7 +70,6 @@ static void dump_zones(struct mddev *mddev)
 			(unsigned long long)zone_size>>1);
 		zone_start = conf->strip_zone[j].zone_end;
 	}
-	printk(KERN_INFO "\n");
 }

applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html