super.c: unused variable warning without CONFIG_QUOTA
authorEldad Zack <eldad@fogrefinery.com>
Sun, 22 Apr 2012 15:50:52 +0000 (17:50 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Apr 2012 01:44:41 +0000 (21:44 -0400)
sb info is only checked with quota support.

fs/ext4/super.c: In function ‘parse_options’:
fs/ext4/super.c:1600:23: warning: unused variable ‘sbi’ [-Wunused-variable]

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

fs/ext4/super.c

index 6da1935..e1fb1d5 100644 (file)
@@ -1597,7 +1597,9 @@ static int parse_options(char *options, struct super_block *sb,
                         unsigned int *journal_ioprio,
                         int is_remount)
 {
+#ifdef CONFIG_QUOTA
        struct ext4_sb_info *sbi = EXT4_SB(sb);
+#endif
        char *p;
        substring_t args[MAX_OPT_ARGS];
        int token;