diff options
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r-- | net/core/neighbour.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index a4e0a7482c2b..96b1a749abb4 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -122,7 +122,7 @@ static void neigh_cleanup_and_release(struct neighbour *neigh) | |||
122 | 122 | ||
123 | unsigned long neigh_rand_reach_time(unsigned long base) | 123 | unsigned long neigh_rand_reach_time(unsigned long base) |
124 | { | 124 | { |
125 | return (base ? (net_random() % base) + (base >> 1) : 0); | 125 | return base ? (net_random() % base) + (base >> 1) : 0; |
126 | } | 126 | } |
127 | EXPORT_SYMBOL(neigh_rand_reach_time); | 127 | EXPORT_SYMBOL(neigh_rand_reach_time); |
128 | 128 | ||
@@ -766,9 +766,9 @@ next_elt: | |||
766 | static __inline__ int neigh_max_probes(struct neighbour *n) | 766 | static __inline__ int neigh_max_probes(struct neighbour *n) |
767 | { | 767 | { |
768 | struct neigh_parms *p = n->parms; | 768 | struct neigh_parms *p = n->parms; |
769 | return (n->nud_state & NUD_PROBE ? | 769 | return (n->nud_state & NUD_PROBE) ? |
770 | p->ucast_probes : | 770 | p->ucast_probes : |
771 | p->ucast_probes + p->app_probes + p->mcast_probes); | 771 | p->ucast_probes + p->app_probes + p->mcast_probes; |
772 | } | 772 | } |
773 | 773 | ||
774 | static void neigh_invalidate(struct neighbour *neigh) | 774 | static void neigh_invalidate(struct neighbour *neigh) |