From: Nicholas Krause <xerofoify@gmail.com>
To: linux@arm.linux.org.uk
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] seeq:Make functions have a return type of bool in the file ether3.c
Date: Mon, 15 Jun 2015 13:38:05 -0400 [thread overview]
Message-ID: <1434389885-12691-1-git-send-email-xerofoify@gmail.com> (raw)
This makes the functions ether3_probe_bus_8 and ether3_probe_bus_16
have a return type of bool now due to their return statement being
only able to evaluate as either one or zero.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/net/ethernet/seeq/ether3.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/seeq/ether3.c b/drivers/net/ethernet/seeq/ether3.c
index bdac936..412c28e 100644
--- a/drivers/net/ethernet/seeq/ether3.c
+++ b/drivers/net/ethernet/seeq/ether3.c
@@ -354,7 +354,7 @@ ether3_init_for_open(struct net_device *dev)
ether3_outw(priv(dev)->regs.command | CMD_RXON, REG_COMMAND);
}
-static inline int
+static inline bool
ether3_probe_bus_8(struct net_device *dev, int val)
{
int write_low, write_high, read_low, read_high;
@@ -375,7 +375,7 @@ ether3_probe_bus_8(struct net_device *dev, int val)
return read_low == write_low && read_high == write_high;
}
-static inline int
+static inline bool
ether3_probe_bus_16(struct net_device *dev, int val)
{
int read_val;
--
2.1.4
reply other threads:[~2015-06-15 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1434389885-12691-1-git-send-email-xerofoify@gmail.com \
--to=xerofoify@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--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).