From: Mark Einon <mark.einon@gmail.com>
To: bhutchings@solarflare.com
Cc: netdev@vger.kernel.org, Mark Einon <mark.einon@gmail.com>
Subject: [PATCH] ethtool: Fix space-after-if checkpatch errors
Date: Tue, 22 Jan 2013 21:04:50 +0000 [thread overview]
Message-ID: <1358888690-3140-1-git-send-email-mark.einon@gmail.com> (raw)
Some version check statements are lacking a space after the if ()
statement. Add them in.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
---
e100.c | 2 +-
e1000.c | 2 +-
et131x.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/e100.c b/e100.c
index 65627ab..b982e79 100644
--- a/e100.c
+++ b/e100.c
@@ -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];
diff --git a/e1000.c b/e1000.c
index d1d3c73..dd47774 100644
--- a/e1000.c
+++ b/e1000.c
@@ -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);
diff --git a/et131x.c b/et131x.c
index 8cdbec0..36abaa2 100644
--- a/et131x.c
+++ b/et131x.c
@@ -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");
--
1.7.10.4
next reply other threads:[~2013-01-22 21:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-22 21:04 Mark Einon [this message]
2013-01-22 21:15 ` [PATCH] ethtool: Fix space-after-if checkpatch errors Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1358888690-3140-1-git-send-email-mark.einon@gmail.com \
--to=mark.einon@gmail.com \
--cc=bhutchings@solarflare.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).