aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_nand.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-12 22:29:20 -0400
committerWolfgang Denk <wd@denx.de>2009-04-16 23:03:44 +0200
commitdfc99e143fca44a492918ac6cf3f76ee9c2473a9 (patch)
tree0599cf28f8f8dcdd7f4cfb90b761ae07f75b838a /common/cmd_nand.c
parent7732cef2eeb4e339cfcd8553fab773af73a20805 (diff)
downloadu-boot-linaro-natty-dfc99e143fca44a492918ac6cf3f76ee9c2473a9.tar.gz
cmd_nand: drop duplicate NULL ptr check
The first if statement checks for NULL ptrs, so there is no need to check it again in later else cases (such as .oob). Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Scott Wood <scottwood@freescale.com>
Diffstat (limited to 'common/cmd_nand.c')
-rw-r--r--common/cmd_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index e142d7666..ff5bc6e27 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -390,7 +390,7 @@ int do_nand(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
else
ret = nand_write_skip_bad(nand, off, &size,
(u_char *)addr);
- } else if (s != NULL && !strcmp(s, ".oob")) {
+ } else if (!strcmp(s, ".oob")) {
/* out-of-band data */
mtd_oob_ops_t ops = {
.oobbuf = (u8 *)addr,