[PATCH] block: use the logical OR condition at blk_flush_complete_seq

From: Kyungmin Park
Date: Mon Jul 25 2011 - 07:03:41 EST


From: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>

Even though the meaning is same, use the logical OR condition instead ORing.

seq blk_kick_flush(q) queued
1 1 0 => true
2 0 1 => true
8 0 0 => false

Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx>
---
diff --git a/block/blk-flush.c b/block/blk-flush.c
index bb21e4c..66e0acb 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -187,7 +187,7 @@ static bool blk_flush_complete_seq(struct request *rq, unsigned int seq,
BUG();
}

- return blk_kick_flush(q) | queued;
+ return blk_kick_flush(q) || queued;
}

static void flush_end_io(struct request *flush_rq, int error)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/