net: cleanup unsigned to unsigned int
Use of "unsigned int" is preferred to bare "unsigned" in net tree. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5e73ea1a31
commit
95c9617472
@@ -1059,7 +1059,7 @@ static int arp_req_set(struct net *net, struct arpreq *r,
|
||||
neigh = __neigh_lookup_errno(&arp_tbl, &ip, dev);
|
||||
err = PTR_ERR(neigh);
|
||||
if (!IS_ERR(neigh)) {
|
||||
unsigned state = NUD_STALE;
|
||||
unsigned int state = NUD_STALE;
|
||||
if (r->arp_flags & ATF_PERM)
|
||||
state = NUD_PERMANENT;
|
||||
err = neigh_update(neigh, (r->arp_flags & ATF_COM) ?
|
||||
@@ -1071,7 +1071,7 @@ static int arp_req_set(struct net *net, struct arpreq *r,
|
||||
return err;
|
||||
}
|
||||
|
||||
static unsigned arp_state_to_flags(struct neighbour *neigh)
|
||||
static unsigned int arp_state_to_flags(struct neighbour *neigh)
|
||||
{
|
||||
if (neigh->nud_state&NUD_PERMANENT)
|
||||
return ATF_PERM | ATF_COM;
|
||||
|
Reference in New Issue
Block a user