diff options
author | Gao Feng <gfree.wind@gmail.com> | 2016-11-13 19:24:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-14 16:36:00 -0500 |
commit | d94d02547ef9043ac04484088f7a6cd264ad7972 (patch) | |
tree | 997e1355d8bee51161dbe1188a0565018bf7c2c8 /drivers/net/macvlan.c | |
parent | 535e7b4b5ef220be374b895684f274872aebd0f8 (diff) |
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.c | 10 |
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, | |||
179 | macvlan_hash_add(vlan); | 179 | macvlan_hash_add(vlan); |
180 | } | 180 | } |
181 | 181 | ||
182 | static int macvlan_addr_busy(const struct macvlan_port *port, | 182 | static bool macvlan_addr_busy(const struct macvlan_port *port, |
183 | const unsigned char *addr) | 183 | const unsigned char *addr) |
184 | { | 184 | { |
185 | /* Test to see if the specified multicast address is | 185 | /* Test to see if the specified multicast address is |
186 | * currently in use by the underlying device or | 186 | * currently in use by the underlying device or |
187 | * another macvlan. | 187 | * another macvlan. |
188 | */ | 188 | */ |
189 | if (ether_addr_equal_64bits(port->dev->dev_addr, addr)) | 189 | if (ether_addr_equal_64bits(port->dev->dev_addr, addr)) |
190 | return 1; | 190 | return true; |
191 | 191 | ||
192 | if (macvlan_hash_lookup(port, addr)) | 192 | if (macvlan_hash_lookup(port, addr)) |
193 | return 1; | 193 | return true; |
194 | 194 | ||
195 | return 0; | 195 | return false; |
196 | } | 196 | } |
197 | 197 | ||
198 | 198 | ||