Commit 4e833c59 authored by Joe Perches's avatar Joe Perches Committed by David S. Miller

ethernet: Use bool function returns of true/false instead of 1/0

Use bool constants as the return values instead of 1 and 0.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e1fa36b
...@@ -11610,7 +11610,7 @@ static bool bnx2x_get_dropless_info(struct bnx2x *bp) ...@@ -11610,7 +11610,7 @@ static bool bnx2x_get_dropless_info(struct bnx2x *bp)
u32 cfg; u32 cfg;
if (IS_VF(bp)) if (IS_VF(bp))
return 0; return false;
if (IS_MF(bp) && !CHIP_IS_E1x(bp)) { if (IS_MF(bp) && !CHIP_IS_E1x(bp)) {
/* Take function: tmp = func */ /* Take function: tmp = func */
......
...@@ -1351,7 +1351,7 @@ static bool reg_pattern_test(struct ixgbe_adapter *adapter, u64 *data, int reg, ...@@ -1351,7 +1351,7 @@ static bool reg_pattern_test(struct ixgbe_adapter *adapter, u64 *data, int reg,
if (ixgbe_removed(adapter->hw.hw_addr)) { if (ixgbe_removed(adapter->hw.hw_addr)) {
*data = 1; *data = 1;
return 1; return true;
} }
for (pat = 0; pat < ARRAY_SIZE(test_pattern); pat++) { for (pat = 0; pat < ARRAY_SIZE(test_pattern); pat++) {
before = ixgbe_read_reg(&adapter->hw, reg); before = ixgbe_read_reg(&adapter->hw, reg);
...@@ -1376,7 +1376,7 @@ static bool reg_set_and_check(struct ixgbe_adapter *adapter, u64 *data, int reg, ...@@ -1376,7 +1376,7 @@ static bool reg_set_and_check(struct ixgbe_adapter *adapter, u64 *data, int reg,
if (ixgbe_removed(adapter->hw.hw_addr)) { if (ixgbe_removed(adapter->hw.hw_addr)) {
*data = 1; *data = 1;
return 1; return true;
} }
before = ixgbe_read_reg(&adapter->hw, reg); before = ixgbe_read_reg(&adapter->hw, reg);
ixgbe_write_reg(&adapter->hw, reg, write & mask); ixgbe_write_reg(&adapter->hw, reg, write & mask);
......
...@@ -1062,7 +1062,7 @@ static bool get_bool(struct platform_device *ofdev, const char *s) ...@@ -1062,7 +1062,7 @@ static bool get_bool(struct platform_device *ofdev, const char *s)
} else { } else {
dev_warn(&ofdev->dev, "Parameter %s not found," dev_warn(&ofdev->dev, "Parameter %s not found,"
"defaulting to false\n", s); "defaulting to false\n", s);
return 0; return false;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment