diff mbox

ext4: Replace plain integer with NULL in super.c file

Message ID 1343903375-27506-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Aug. 2, 2012, 10:29 a.m. UTC
Fixes the following sparse warning:
fs/ext4/super.c:1672:45: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 fs/ext4/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Sachin Kamat Aug. 13, 2012, 4:16 p.m. UTC | #1
ping...

On 2 August 2012 15:59, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Fixes the following sparse warning:
> fs/ext4/super.c:1672:45: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  fs/ext4/super.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ext4/super.c b/fs/ext4/super.c
> index d76ec82..1b000a6 100644
> --- a/fs/ext4/super.c
> +++ b/fs/ext4/super.c
> @@ -1669,7 +1669,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);
>                 if (handle_mount_opt(sb, p, token, args, journal_devnum,
>                                      journal_ioprio, is_remount) < 0)
> --
> 1.7.4.1
>
Theodore Ts'o Aug. 17, 2012, 11:21 p.m. UTC | #2
Applied.  Apologies for the delay; I had some higher priority patches
I needed to deal with first....

					- Ted
diff mbox

Patch

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index d76ec82..1b000a6 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1669,7 +1669,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);
 		if (handle_mount_opt(sb, p, token, args, journal_devnum,
 				     journal_ioprio, is_remount) < 0)