diff options
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r-- | net/ipv6/anycast.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index db00d27ffb16..cdf02be5f191 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c | |||
@@ -342,7 +342,7 @@ static int ipv6_dev_ac_dec(struct net_device *dev, const struct in6_addr *addr) | |||
342 | * check if the interface has this anycast address | 342 | * check if the interface has this anycast address |
343 | * called with rcu_read_lock() | 343 | * called with rcu_read_lock() |
344 | */ | 344 | */ |
345 | static int ipv6_chk_acast_dev(struct net_device *dev, const struct in6_addr *addr) | 345 | static bool ipv6_chk_acast_dev(struct net_device *dev, const struct in6_addr *addr) |
346 | { | 346 | { |
347 | struct inet6_dev *idev; | 347 | struct inet6_dev *idev; |
348 | struct ifacaddr6 *aca; | 348 | struct ifacaddr6 *aca; |
@@ -356,16 +356,16 @@ static int ipv6_chk_acast_dev(struct net_device *dev, const struct in6_addr *add | |||
356 | read_unlock_bh(&idev->lock); | 356 | read_unlock_bh(&idev->lock); |
357 | return aca != NULL; | 357 | return aca != NULL; |
358 | } | 358 | } |
359 | return 0; | 359 | return false; |
360 | } | 360 | } |
361 | 361 | ||
362 | /* | 362 | /* |
363 | * check if given interface (or any, if dev==0) has this anycast address | 363 | * check if given interface (or any, if dev==0) has this anycast address |
364 | */ | 364 | */ |
365 | int ipv6_chk_acast_addr(struct net *net, struct net_device *dev, | 365 | bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev, |
366 | const struct in6_addr *addr) | 366 | const struct in6_addr *addr) |
367 | { | 367 | { |
368 | int found = 0; | 368 | bool found = false; |
369 | 369 | ||
370 | rcu_read_lock(); | 370 | rcu_read_lock(); |
371 | if (dev) | 371 | if (dev) |
@@ -373,7 +373,7 @@ int ipv6_chk_acast_addr(struct net *net, struct net_device *dev, | |||
373 | else | 373 | else |
374 | for_each_netdev_rcu(net, dev) | 374 | for_each_netdev_rcu(net, dev) |
375 | if (ipv6_chk_acast_dev(dev, addr)) { | 375 | if (ipv6_chk_acast_dev(dev, addr)) { |
376 | found = 1; | 376 | found = true; |
377 | break; | 377 | break; |
378 | } | 378 | } |
379 | rcu_read_unlock(); | 379 | rcu_read_unlock(); |