]> Pileus Git - ~andy/linux/commitdiff
ext3: Replace 0 with NULL for pointer in super.c file
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 4 Sep 2012 08:12:00 +0000 (13:42 +0530)
committerJan Kara <jack@suse.cz>
Tue, 4 Sep 2012 09:59:13 +0000 (11:59 +0200)
Fixes the following sparse warning:
fs/ext3/super.c:983:45: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext3/super.c

index d90ad0574705e01cb7e42bea044884f4f3e91997..504fb3f514200864d63b3ea799cb0aabf9b93b02 100644 (file)
@@ -975,7 +975,7 @@ static int parse_options (char *options, struct super_block *sb,
                 * Initialize args struct so we know whether arg was
                 * found; some options take optional arguments.
                 */
-               args[0].to = args[0].from = 0;
+               args[0].to = args[0].from = NULL;
                token = match_token(p, tokens, args);
                switch (token) {
                case Opt_bsd_df: