From: Gabriel C <nix.or.die@googlemail.com>
To: "Jörn Engel" <joern@logfs.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
David Woodhouse <dwmw2@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: drivers/mtd/devices/doc2000.c - address of 'eccbuf' will always evaluate as 'true' , warnings
Date: Mon, 23 Jul 2007 00:44:52 +0200 [thread overview]
Message-ID: <46A3DDE4.1090701@googlemail.com> (raw)
In-Reply-To: <20070722204325.GB11479@lazybastard.org>
Jörn Engel wrote:
> On Sun, 22 July 2007 22:29:29 +0200, Gabriel C wrote:
>> @@ -896,25 +896,6 @@ static int doc_write(struct mtd_info *mtd, loff_t to, size_t len,
>> /* Let the caller know we completed it */
>> *retlen += len;
>>
>> - if (eccbuf) {
>> - unsigned char x[8];
>> - size_t dummy;
>> - int ret;
>> -
>> - /* Write the ECC data to flash */
>> - for (di=0; di<6; di++)
>> - x[di] = eccbuf[di];
>> -
>> - x[6]=0x55;
>> - x[7]=0x55;
>> -
>> - ret = doc_write_oob_nolock(mtd, to, 8, &dummy, x);
>> - if (ret) {
>> - mutex_unlock(&this->lock);
>> - return ret;
>> - }
>> - }
>> -
>> to += len;
>> left -= len;
>> buf += len;
>
> You should remove the condition, but not the conditional code.
Sorry , I was away from keyboard.
Then I can't understand what this code is doing :/
So let Thomas or someone know this code fix it.
>
> Jörn
>
Regards,
Gabriel
prev parent reply other threads:[~2007-07-22 22:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-22 12:13 drivers/mtd/devices/doc2000.c - address of 'eccbuf' will always evaluate as 'true' , warnings Gabriel C
2007-07-22 19:34 ` Jörn Engel
2007-07-22 20:29 ` Gabriel C
2007-07-22 20:43 ` Jörn Engel
2007-07-22 22:44 ` Gabriel C [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=46A3DDE4.1090701@googlemail.com \
--to=nix.or.die@googlemail.com \
--cc=dwmw2@infradead.org \
--cc=joern@logfs.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
/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