[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[patch 1/3] fs/ext3/super.c: fix sparse warnings



From: Alexey Dobriyan <adobriyan mail ru>


Signed-off-by: Alexey Dobriyan <adobriyan mail ru>
Signed-off-by: Domen Puncer <domen coderock org>
---
 super.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Index: quilt/fs/ext3/super.c
===================================================================
--- quilt.orig/fs/ext3/super.c
+++ quilt/fs/ext3/super.c
@@ -2136,6 +2136,7 @@ static int ext3_remount (struct super_bl
 			ext3_mark_recovery_complete(sb, es);
 		} else {
 			__le32 ret;
+			int ret1;
 			if ((ret = EXT3_HAS_RO_COMPAT_FEATURE(sb,
 					~EXT3_FEATURE_RO_COMPAT_SUPP))) {
 				printk(KERN_WARNING "EXT3-fs: %s: couldn't "
@@ -2152,8 +2153,8 @@ static int ext3_remount (struct super_bl
 			 */
 			ext3_clear_journal_err(sb, es);
 			sbi->s_mount_state = le16_to_cpu(es->s_state);
-			if ((ret = ext3_group_extend(sb, es, n_blocks_count)))
-				return ret;
+			if ((ret1 = ext3_group_extend(sb, es, n_blocks_count)))
+				return ret1;
 			if (!ext3_setup_super (sb, es, 0))
 				sb->s_flags &= ~MS_RDONLY;
 		}

--


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]