From: Jan Kara <jack@suse.cz>
To: Sachin Kamat <sachin.kamat@linaro.org>
Cc: linux-ext4@vger.kernel.org, jack@suse.cz,
akpm@linux-foundation.org, patches@linaro.org
Subject: Re: [PATCH] ext3: Replace 0 with NULL for pointer in super.c file
Date: Tue, 4 Sep 2012 12:00:23 +0200 [thread overview]
Message-ID: <20120904100023.GB5673@quack.suse.cz> (raw)
In-Reply-To: <1346746320-32582-1-git-send-email-sachin.kamat@linaro.org>
On Tue 04-09-12 13:42:00, Sachin Kamat wrote:
> 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>
Thanks. I've added the patch to my tree.
Honza
> ---
> fs/ext3/super.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ext3/super.c b/fs/ext3/super.c
> index cf1fb17..0e17142 100644
> --- a/fs/ext3/super.c
> +++ b/fs/ext3/super.c
> @@ -980,7 +980,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:
> --
> 1.7.4.1
>
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
prev parent reply other threads:[~2012-09-04 10:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 8:12 [PATCH] ext3: Replace 0 with NULL for pointer in super.c file Sachin Kamat
2012-09-04 10:00 ` Jan Kara [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120904100023.GB5673@quack.suse.cz \
--to=jack@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=linux-ext4@vger.kernel.org \
--cc=patches@linaro.org \
--cc=sachin.kamat@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).