linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ext4: Replace plain integer with NULL in super.c file
@ 2012-08-02 10:29 Sachin Kamat
  2012-08-13 16:16 ` Sachin Kamat
  0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2012-08-02 10:29 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, adilger.kernel, sachin.kamat, patches

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4: Replace plain integer with NULL in super.c file
  2012-08-02 10:29 [PATCH] ext4: Replace plain integer with NULL in super.c file Sachin Kamat
@ 2012-08-13 16:16 ` Sachin Kamat
  2012-08-17 23:21   ` Theodore Ts'o
  0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2012-08-13 16:16 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, adilger.kernel, sachin.kamat, patches

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
>



-- 
With warm regards,
Sachin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ext4: Replace plain integer with NULL in super.c file
  2012-08-13 16:16 ` Sachin Kamat
@ 2012-08-17 23:21   ` Theodore Ts'o
  0 siblings, 0 replies; 3+ messages in thread
From: Theodore Ts'o @ 2012-08-17 23:21 UTC (permalink / raw)
  To: Sachin Kamat; +Cc: linux-ext4, adilger.kernel, patches

Applied.  Apologies for the delay; I had some higher priority patches
I needed to deal with first....

					- Ted

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-17 23:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02 10:29 [PATCH] ext4: Replace plain integer with NULL in super.c file Sachin Kamat
2012-08-13 16:16 ` Sachin Kamat
2012-08-17 23:21   ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).