Skip to content

Commit 804b2b6

Browse files
tititiou36Lorenzo Pieralisi
authored andcommitted
PCI: tegra: Use 'seq_puts' instead of 'seq_printf'
As spotted by checkpatch, use 'seq_puts' instead of 'seq_printf' when possible. It is slightly more efficient. Link: https://lore.kernel.org/r/7bdedb342b9221169ab085540cf25d1992e8b97a.1620148539.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Vidya Sagar <[email protected]>
1 parent eff21f5 commit 804b2b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/pci/controller/pci-tegra.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ static void *tegra_pcie_ports_seq_start(struct seq_file *s, loff_t *pos)
25462546
if (list_empty(&pcie->ports))
25472547
return NULL;
25482548

2549-
seq_printf(s, "Index Status\n");
2549+
seq_puts(s, "Index Status\n");
25502550

25512551
return seq_list_start(&pcie->ports, *pos);
25522552
}
@@ -2583,16 +2583,16 @@ static int tegra_pcie_ports_seq_show(struct seq_file *s, void *v)
25832583
seq_printf(s, "%2u ", port->index);
25842584

25852585
if (up)
2586-
seq_printf(s, "up");
2586+
seq_puts(s, "up");
25872587

25882588
if (active) {
25892589
if (up)
2590-
seq_printf(s, ", ");
2590+
seq_puts(s, ", ");
25912591

2592-
seq_printf(s, "active");
2592+
seq_puts(s, "active");
25932593
}
25942594

2595-
seq_printf(s, "\n");
2595+
seq_puts(s, "\n");
25962596
return 0;
25972597
}
25982598

0 commit comments

Comments
 (0)