net: return operator cleanup
[pandora-kernel.git] / net / core / neighbour.c
index a4e0a74..96b1a74 100644 (file)
@@ -122,7 +122,7 @@ static void neigh_cleanup_and_release(struct neighbour *neigh)
 
 unsigned long neigh_rand_reach_time(unsigned long base)
 {
-       return (base ? (net_random() % base) + (base >> 1) : 0);
+       return base ? (net_random() % base) + (base >> 1) : 0;
 }
 EXPORT_SYMBOL(neigh_rand_reach_time);
 
@@ -766,9 +766,9 @@ next_elt:
 static __inline__ int neigh_max_probes(struct neighbour *n)
 {
        struct neigh_parms *p = n->parms;
-       return (n->nud_state & NUD_PROBE ?
+       return (n->nud_state & NUD_PROBE) ?
                p->ucast_probes :
-               p->ucast_probes + p->app_probes + p->mcast_probes);
+               p->ucast_probes + p->app_probes + p->mcast_probes;
 }
 
 static void neigh_invalidate(struct neighbour *neigh)