mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
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 <yeliztaneroglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1e0e76508c
commit
cbd8e0863a
1 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue