From: Artem Bityutskiy <dedekind@infradead.org>
To: Jesper Juhl <jesper.juhl@gmail.com>
Cc: linux-mtd@lists.infradead.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] UBI: silence warning about possibly uninitialized use of variable in drivers/mtd/ubi/vmt.c ...
Date: Sat, 15 Dec 2007 13:18:15 +0200 [thread overview]
Message-ID: <1197717495.25999.33.camel@sauron> (raw)
In-Reply-To: <4761b8f2.1c89420a.7f10.ffffe9db@mx.google.com>
On Thu, 2007-12-13 at 23:53 +0100, Jesper Juhl wrote:
> From: Jesper Juhl <jesper.juhl@gmail.com>
>
> This patch silences the following warning :
>
> drivers/mtd/ubi/vmt.c:73: warning: 'ret' may be used uninitialized in this function
>
> gcc can't see that we always initialize ret in all situations where it is
> actually used. The one case where it's not initialized is when we BUG(),
> but gcc doesn't know that we won't then continue and use an uninitialized
> 'ret'.
>
> This patch results in code that does exactely the same as before, but it
> also makes gcc shut up, so we generate one less line of warning noise.
>
>
> Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Pushed to ubi-2.6.git, thanks.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
prev parent reply other threads:[~2007-12-15 11:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-13 22:53 [PATCH] UBI: silence warning about possibly uninitialized use of variable in drivers/mtd/ubi/vmt.c Jesper Juhl
2007-12-15 11:18 ` Artem Bityutskiy [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=1197717495.25999.33.camel@sauron \
--to=dedekind@infradead.org \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.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