Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d94d0254 authored by Gao Feng's avatar Gao Feng Committed by David S. Miller
Browse files

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: default avatarGao Feng <gfree.wind@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 535e7b4b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -179,7 +179,7 @@ static void macvlan_hash_change_addr(struct macvlan_dev *vlan,
	macvlan_hash_add(vlan);
}

static int macvlan_addr_busy(const struct macvlan_port *port,
static bool macvlan_addr_busy(const struct macvlan_port *port,
			      const unsigned char *addr)
{
	/* Test to see if the specified multicast address is
@@ -187,12 +187,12 @@ static int macvlan_addr_busy(const struct macvlan_port *port,
	 * 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;
}