bonding: Use seq_putc() in bond_info_show_master()
Subsystems (4)
PATCH 1/1 bonding: Use seq_putc() in bond_info_show_master()
From: Markus Elfring <[email protected]>
Date: Tue, 2 May 2017 20:48:36 +0200
A few single characters should be put into a sequence. Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/net/bonding/bond_procfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/bonding/bond_procfs.c +3 -3
@@ -72,7 +72,7 @@ static void bond_info_show_master(struct seq_file *seq)seq_printf (seq," (fail_over_mac %s)" , optval->string); } -seq_printf (seq,"\n" ); +seq_putc (seq,'\n' );if (bond_mode_uses_xmit_hash (bond)) { optval = bond_opt_get_val(BOND_OPT_XMIT_HASH,
@@ -117,11 +117,11 @@ static void bond_info_show_master(struct seq_file *seq)if (!bond->params.arp_targets[i])break ;if (printed) -seq_printf (seq,"," ); +seq_putc (seq,',' );seq_printf (seq," %pI4" , &bond->params.arp_targets[i]); printed =1 ; } -seq_printf (seq,"\n" ); +seq_putc (seq,'\n' ); }if (BOND_MODE (bond) =BOND_MODE_8023AD ) {
Signature · 1 line
2.12.2