Browse Source

xfs: extra semi-colon breaks a condition

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>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Dan Carpenter 11 years ago
parent
commit
805eeb8e04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fs/xfs/xfs_aops.c

+ 2 - 2
fs/xfs/xfs_aops.c

@@ -659,10 +659,10 @@ xfs_check_page_type(
 			if (type == XFS_IO_UNWRITTEN)
 			if (type == XFS_IO_UNWRITTEN)
 				return true;
 				return true;
 		} else if (buffer_delay(bh)) {
 		} else if (buffer_delay(bh)) {
-			if (type == XFS_IO_DELALLOC);
+			if (type == XFS_IO_DELALLOC)
 				return true;
 				return true;
 		} else if (buffer_dirty(bh) && buffer_mapped(bh)) {
 		} else if (buffer_dirty(bh) && buffer_mapped(bh)) {
-			if (type == XFS_IO_OVERWRITE);
+			if (type == XFS_IO_OVERWRITE)
 				return true;
 				return true;
 		}
 		}