Skip to contentSkip to conversation

misc: mic: Combine two function calls into one in mic_msi_irq_info_show()

PATCH New SF Markus Elfring 1 participant 1 message May 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 misc: mic: Combine two function calls into one in mic_msi_irq_info_show()

From: Markus Elfring <[email protected]>
Date: Mon, 8 May 2017 15:21:39 +0200

A bit of data was put into a sequence by two separate function calls. Print the same data by a single function call instead.

This issue was detected by using the Coccinelle software.

---
 drivers/misc/mic/host/mic_debugfs.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/misc/mic/host/mic_debugfs.c +1 -4
index 0a9daba8bb5d..63df428ef150 100644
@@ -126,10 +126,7 @@ static int mic_msi_irq_info_show(struct seq_file *s, void *pos)
 			seq_printf(s, "%-10s", "offset:");
 			for (j = (MIC_NUM_OFFSETS - 1); j >= 0; j--)
 				seq_printf(s, "%4d ", j);
-			seq_puts(s, "\n");
-
-
-			seq_printf(s, "%-10s", "count:");
+			seq_printf(s, "\n%-10s", "count:");
 			for (j = (MIC_NUM_OFFSETS - 1); j >= 0; j--)
 				seq_printf(s, "%4d ",
 					   (mdev->irq_info.mic_msi_map[i] &
Signature · 1 line
2.12.2