All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] xfs: extra semi-colon breaks a condition
@ 2014-03-28  8:03 ` Dan Carpenter
  0 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2014-03-28  8:03 UTC (permalink / raw)
  To: Dave Chinner; +Cc: kernel-janitors, xfs

There were some extra semi-colons here which mean that we return true
unintentionally.

Fixes: a49935f200e2 ('xfs: xfs_check_page_type buffer checks need help')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c
index 98016b3..75df77d 100644
--- a/fs/xfs/xfs_aops.c
+++ b/fs/xfs/xfs_aops.c
@@ -659,10 +659,10 @@ xfs_check_page_type(
 			if (type = XFS_IO_UNWRITTEN)
 				return true;
 		} else if (buffer_delay(bh)) {
-			if (type = XFS_IO_DELALLOC);
+			if (type = XFS_IO_DELALLOC)
 				return true;
 		} else if (buffer_dirty(bh) && buffer_mapped(bh)) {
-			if (type = XFS_IO_OVERWRITE);
+			if (type = XFS_IO_OVERWRITE)
 				return true;
 		}
 

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-04-03 19:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-28  8:03 [patch] xfs: extra semi-colon breaks a condition Dan Carpenter
2014-03-28  8:03 ` Dan Carpenter
2014-03-28 12:09 ` Brian Foster
2014-03-28 12:09   ` Brian Foster
2014-03-29  1:56 ` Eric Sandeen
2014-03-29  1:56   ` Eric Sandeen
2014-03-29  2:08   ` Raphael S Carvalho
2014-04-03 19:36 ` Dave Chinner
2014-04-03 19:36   ` Dave Chinner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.