Staging: i2o: Removed unnecessary braces
PATCH 1/1 Staging: i2o: Removed unnecessary braces
The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by Yeliz Taneroglu <[email protected]>
--- drivers/staging/i2o/i2o_proc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/i2o/i2o_proc.c +2 -4
@@ -85,9 +85,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)switch (serialno[0 ]) {case I2O_SNFORMAT_BINARY :/* Binary */ seq_printf (seq,"0x" ); -for (i =0 ; i < serialno[1 ]; i++) { +for (i =0 ; i < serialno[1 ]; i++)seq_printf (seq,"%02X" , serialno[2 + i]); - }break ;case I2O_SNFORMAT_ASCII :/* ASCII */
@@ -101,9 +100,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)seq_printf (seq,"%s" , &serialno[2 ]); }else {/* print chars for specified length */ -for (i =0 ; i < serialno[1 ]; i++) { +for (i =0 ; i < serialno[1 ]; i++)seq_printf (seq,"%c" , serialno[2 + i]); - } }break ;
Signature · 1 line
1.8.3.2
Quoted 6 lines · Yeliz Taneroglu
The following patch fixes the checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocksSigned-off-by Yeliz Taneroglu <[email protected]>--- drivers/staging/i2o/i2o_proc.c | 6 ++----
i2o is going away. Please try to avoid sending patches on it.
julia
Quoted 38 lines
1 file changed, 2 insertions(+), 4 deletions(-)drivers/staging/i2o/i2o_proc.c +2
-4@@ -85,9 +85,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)switch (serialno[0 ]) {case I2O_SNFORMAT_BINARY :/* Binary */ seq_printf (seq,"0x" ); -for (i =0 ; i < serialno[1 ]; i++) { +for (i =0 ; i < serialno[1 ]; i++)seq_printf (seq,"%02X" , serialno[2 + i]); - }break ;case I2O_SNFORMAT_ASCII :/* ASCII */ @@ -101,9 +100,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)seq_printf (seq,"%s" , &serialno[2 ]); }else {/* print chars for specified length */ -for (i =0 ; i < serialno[1 ]; i++) { +for (i =0 ; i < serialno[1 ]; i++)seq_printf (seq,"%c" , serialno[2 + i]); - } }break ;Signature · 8 lines
1.8.3.2 -- You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424907936-9368-1-git-send-email-yeliztaneroglu%40gmail.com. For more options, visit https://groups.google.com/d/optout.