OSDN Git Service

ocfs2: Misplaced parens in unlikley
authorroel <roel.kluin@gmail.com>
Mon, 12 Dec 2011 22:40:51 +0000 (23:40 +0100)
committerJoel Becker <jlbec@evilplan.org>
Wed, 4 Jul 2012 06:27:13 +0000 (23:27 -0700)
Fix misplaced parentheses

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/dlmglue.c

index 81a4cd2..274529c 100644 (file)
@@ -456,7 +456,7 @@ static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
        stats->ls_gets++;
        stats->ls_total += ktime_to_ns(kt);
        /* overflow */
-       if (unlikely(stats->ls_gets) == 0) {
+       if (unlikely(stats->ls_gets == 0)) {
                stats->ls_gets++;
                stats->ls_total = ktime_to_ns(kt);
        }