Skip to contentSkip to conversation

ocfs2: Misplaced parens in unlikley

PATCH In review roel 3 participants 3 messages Dec 12, 2011 – Jul 4, 2012 OCFS2

lore
Share & tools
lore

roel

author
#0 lore raw

PATCH 1/1 ocfs2: Misplaced parens in unlikley

Fix misplaced parentheses

---
 fs/ocfs2/dlmglue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/dlmglue.c +1 -1
index 81a4cd2..274529c 100644
@@ -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);
 	}
maintainer
#2 lore raw
In reply to roel
Quoted 3 lines · roel

Fix misplaced parentheses

This patch is now (finally) part of the 'fixes' branch of ocfs2.git.

Joel

Quoted 17 lines
---
 fs/ocfs2/dlmglue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/dlmglue.c +1 -1
index 81a4cd2..274529c 100644
@@ -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);
 	}
Signature · 6 lines
"There are only two ways to live your life. One is as though nothing
 is a miracle. The other is as though everything is a miracle."
        - Albert Einstein

			http://www.jlbec.org/
			jlbec at evilplan.org