summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorFabio Checconi <fabio@gandalf.sssup.it>2008-03-20 15:54:58 -0700
committerDavid S. Miller <davem@davemloft.net>2008-03-20 15:54:58 -0700
commit2bec008ca9fd009aa503b75344d1c22da9256141 (patch)
tree5c3e97da66e6d0346d9de30d2fd48764e6ac29fd /net
parent7582a33557cc6dc42b4c6918c6e7f8e465b72a70 (diff)
bridge: use time_before() in br_fdb_cleanup()
In br_fdb_cleanup() next_timer and this_timer are in jiffies, so they should be compared using the time_after() macro. Signed-off-by: Fabio Checconi <fabio@gandalf.sssup.it> Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/bridge/br_fdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
index bc40377136a2..9326c377822e 100644
--- a/net/bridge/br_fdb.c
+++ b/net/bridge/br_fdb.c
@@ -136,7 +136,7 @@ void br_fdb_cleanup(unsigned long _data)
this_timer = f->ageing_timer + delay;
if (time_before_eq(this_timer, jiffies))
fdb_delete(f);
- else if (this_timer < next_timer)
+ else if (time_before(this_timer, next_timer))
next_timer = this_timer;
}
}