[PATCH] seeq:Make functions have a return type of bool in the file ether3.c
Nicholas Krause
xerofoify at gmail.com
Mon Jun 15 10:38:05 PDT 2015
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 at 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
More information about the linux-arm-kernel
mailing list