Skip to content

Commit fd21565

Browse files
einonmBen Hutchings
authored and
Ben Hutchings
committed
ethtool: Fix space-after-if checkpatch errors
Some version check statements are lacking a space after the if () statement. Add them in. Signed-off-by: Mark Einon <[email protected]> Signed-off-by: Ben Hutchings <[email protected]>
1 parent ff83cec commit fd21565

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

e100.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e100_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
4646
u32 reg;
4747
u16 scb_status, scb_cmd;
4848

49-
if(version != 1)
49+
if (version != 1)
5050
return -1;
5151

5252
reg = regs_buff[0];

e1000.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ e1000_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
374374
enum e1000_mac_type mac_type;
375375
u32 reg;
376376

377-
if(version != 1)
377+
if (version != 1)
378378
return -1;
379379

380380
mac_type = e1000_get_mac_type(hw_device_id, hw_revision_id);

et131x.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ int et131x_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)
77
u8 version = (u8)(regs->version >> 24);
88
u32 *reg = (u32 *)regs->data;
99

10-
if(version != 1)
10+
if (version != 1)
1111
return -1;
1212

1313
fprintf(stdout, "PHY Registers\n");

0 commit comments

Comments
 (0)