summaryrefslogtreecommitdiff
path: root/drivers/net/macvlan.c
diff options
context:
space:
mode:
authorGao Feng <gfree.wind@gmail.com>2016-11-14 03:24:19 +0300
committerDavid S. Miller <davem@davemloft.net>2016-11-15 00:36:00 +0300
commitd94d02547ef9043ac04484088f7a6cd264ad7972 (patch)
tree997e1355d8bee51161dbe1188a0565018bf7c2c8 /drivers/net/macvlan.c
parent535e7b4b5ef220be374b895684f274872aebd0f8 (diff)
downloadlinux-d94d02547ef9043ac04484088f7a6cd264ad7972.tar.xz
driver: macvlan: Replace integer number with bool value
The return value of function macvlan_addr_busy is used as bool value, so use bool value instead of integer number "1" and "0". Signed-off-by: Gao Feng <gfree.wind@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r--drivers/net/macvlan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index a0644158647a..d0361f3197c9 100644
--- a/drivers/net/macvlan.c
+++ b/drivers/net/macvlan.c
@@ -179,20 +179,20 @@ static void macvlan_hash_change_addr(struct macvlan_dev *vlan,
macvlan_hash_add(vlan);
}
-static int macvlan_addr_busy(const struct macvlan_port *port,
- const unsigned char *addr)
+static bool macvlan_addr_busy(const struct macvlan_port *port,
+ const unsigned char *addr)
{
/* Test to see if the specified multicast address is
* currently in use by the underlying device or
* another macvlan.
*/
if (ether_addr_equal_64bits(port->dev->dev_addr, addr))
- return 1;
+ return true;
if (macvlan_hash_lookup(port, addr))
- return 1;
+ return true;
- return 0;
+ return false;
}