Commit cbd8e086 authored by Yeliz Taneroglu's avatar Yeliz Taneroglu Committed by Greg Kroah-Hartman

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: default avatarYeliz Taneroglu <yeliztaneroglu@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e0e7650
...@@ -85,9 +85,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len) ...@@ -85,9 +85,8 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)
switch (serialno[0]) { switch (serialno[0]) {
case I2O_SNFORMAT_BINARY: /* Binary */ case I2O_SNFORMAT_BINARY: /* Binary */
seq_printf(seq, "0x"); 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]); seq_printf(seq, "%02X", serialno[2 + i]);
}
break; break;
case I2O_SNFORMAT_ASCII: /* ASCII */ case I2O_SNFORMAT_ASCII: /* ASCII */
...@@ -101,10 +100,9 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len) ...@@ -101,10 +100,9 @@ static int print_serial_number(struct seq_file *seq, u8 * serialno, int max_len)
seq_printf(seq, "%s", &serialno[2]); seq_printf(seq, "%s", &serialno[2]);
} else { } else {
/* print chars for specified length */ /* 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]); seq_printf(seq, "%c", serialno[2 + i]);
} }
}
break; break;
case I2O_SNFORMAT_UNICODE: /* UNICODE */ case I2O_SNFORMAT_UNICODE: /* UNICODE */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment