ipv6: bool/const conversions phase2
Mostly bool conversions, some inline removals and const additions. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
32e9072b92
commit
a50feda546
17 changed files with 131 additions and 130 deletions
|
@ -348,7 +348,7 @@ static int ndisc_constructor(struct neighbour *neigh)
|
|||
struct net_device *dev = neigh->dev;
|
||||
struct inet6_dev *in6_dev;
|
||||
struct neigh_parms *parms;
|
||||
int is_multicast = ipv6_addr_is_multicast(addr);
|
||||
bool is_multicast = ipv6_addr_is_multicast(addr);
|
||||
|
||||
in6_dev = in6_dev_get(dev);
|
||||
if (in6_dev == NULL) {
|
||||
|
@ -725,7 +725,7 @@ static void ndisc_recv_ns(struct sk_buff *skb)
|
|||
struct inet6_dev *idev = NULL;
|
||||
struct neighbour *neigh;
|
||||
int dad = ipv6_addr_any(saddr);
|
||||
int inc;
|
||||
bool inc;
|
||||
int is_router = -1;
|
||||
|
||||
if (ipv6_addr_is_multicast(&msg->target)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue