ethtool: Fix space-after-if checkpatch errors
Subsystems (2)
PATCH 1/1 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]>
--- e100.c | 2 +- e1000.c | 2 +- et131x.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
e100.c +1 -1
@@ -46,7 +46,7 @@ e100_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)u32 reg;u16 scb_status, scb_cmd; -if (version !=1 ) +if (version !=1 )return -1 ; reg = regs_buff[0 ];
e1000.c +1 -1
@@ -374,7 +374,7 @@ e1000_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)enum e1000_mac_type mac_type;u32 reg; -if (version !=1 ) +if (version !=1 )return -1 ; mac_type =e1000_get_mac_type (hw_device_id, hw_revision_id);
et131x.c +1 -1
@@ -7,7 +7,7 @@ int et131x_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs)u8 version = (u8)(regs->version >>24 );u32 *reg = (u32 *)regs->data; -if (version !=1 ) +if (version !=1 )return -1 ;fprintf (stdout,"PHY Registers\n" );
Signature · 1 line
1.7.10.4
Quoted 4 lines · Mark Einon
Some version check statements are lacking a space after the if () statement. Add them in.
Signed-off-by Mark Einon <[email protected]>
[...]
OK, I've applied this on top of your earlier patch.
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.