public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] NAND: Have nboot accept .e and .i as legacy no-ops.
Date: Tue, 17 Mar 2009 13:49:20 -0400	[thread overview]
Message-ID: <200903171349.22010.vapier@gentoo.org> (raw)
In-Reply-To: <20090317171015.GA14806@ld0162-tx32.am.freescale.net>

On Tuesday 17 March 2009 13:10:15 Scott Wood wrote:
> --- a/common/cmd_nand.c
> +++ b/common/cmd_nand.c
> @@ -502,7 +502,7 @@ static int nand_load_image(cmd_tbl_t *cmdtp,
> nand_info_t *nand,
>
>  	s = strchr(cmd, '.');
>  	if (s != NULL &&
> -	    (strcmp(s, ".jffs2") && !strcmp(s, ".e") && !strcmp(s, ".i"))) {
> +	    (strcmp(s, ".jffs2") && strcmp(s, ".e") && strcmp(s, ".i"))) {

unrelated to the bug in question, but perhaps better written like:
if (s++ != NULL &&
    (strcmp(s, "jffs2") && strcmp(s, "e") && strcmp(s, "i"))) {
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090317/ae08507d/attachment-0001.pgp 

  reply	other threads:[~2009-03-17 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-17 17:10 [U-Boot] [PATCH] NAND: Have nboot accept .e and .i as legacy no-ops Scott Wood
2009-03-17 17:49 ` Mike Frysinger [this message]
2009-03-17 17:55   ` Scott Wood
2009-03-17 18:09     ` Mike Frysinger

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=200903171349.22010.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=u-boot@lists.denx.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