aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 2a9b363e820c..307e1f1107ca 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -246,7 +246,7 @@ static spinlock_t *rt_hash_locks;
246 246
247static struct rt_hash_bucket *rt_hash_table; 247static struct rt_hash_bucket *rt_hash_table;
248static unsigned rt_hash_mask; 248static unsigned rt_hash_mask;
249static int rt_hash_log; 249static unsigned int rt_hash_log;
250static unsigned int rt_hash_rnd; 250static unsigned int rt_hash_rnd;
251 251
252static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat); 252static DEFINE_PER_CPU(struct rt_cache_stat, rt_cache_stat);
@@ -593,7 +593,7 @@ static void rt_check_expire(struct work_struct *work)
593 i = (i + 1) & rt_hash_mask; 593 i = (i + 1) & rt_hash_mask;
594 rthp = &rt_hash_table[i].chain; 594 rthp = &rt_hash_table[i].chain;
595 595
596 if (*rthp == 0) 596 if (*rthp == NULL)
597 continue; 597 continue;
598 spin_lock_bh(rt_hash_lock_addr(i)); 598 spin_lock_bh(rt_hash_lock_addr(i));
599 while ((rth = *rthp) != NULL) { 599 while ((rth = *rthp) != NULL) {