Skip to contentSkip to conversation

ocfs2: fix warning in ocfs2_file_aio_write()

PATCH New Coly Li 2 participants 2 messages Feb 25, 2010 – Feb 26, 2010 OCFS2

lore
Share & tools
lore

Coly Li

author
#0 lore raw

PATCH 1/1 ocfs2: fix warning in ocfs2_file_aio_write()

This patch fixes a compiling warning in ocfs2_file_aio_write().

---
 fs/ocfs2/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/file.c +1 -1
index 558ce03..a712094 100644
@@ -2043,7 +2043,7 @@ out_dio:
 	 * async dio is going to do it in the future or an end_io after an
 	 * error has already done it.
 	 */
-	if (ret == -EIOCBQUEUED || !ocfs2_iocb_is_rw_locked(iocb)) {
+	if ((ret == -EIOCBQUEUED) || (!ocfs2_iocb_is_rw_locked(iocb))) {
 		rw_level = -1;
 		have_alloc_sem = 0;
 	}
Signature · 2 lines
Coly Li
SuSE Labs
#1 lore raw

PATCH 1/1 ocfs2: fix warning in ocfs2_file_aio_write()

Quoted 3 lines · Coly Li

This patch fixes a compiling warning in ocfs2_file_aio_write().

This patch is now in the merge-window branch of ocfs2.git

Joel

Signature · 9 lines
Life's Little Instruction Book #109

	"Know how to drive a stick shift."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127