aboutsummaryrefslogtreecommitdiff
path: root/common/command.c
diff options
context:
space:
mode:
authorwdenk2005-04-06 00:04:16 +0000
committerwdenk2005-04-06 00:04:16 +0000
commit20787e23b8501f11c83599d1a2e38bb1204ac961 (patch)
treefba53e6f1dd6cb3ca1f030ac47bffbdf3bdbdd1f /common/command.c
parent3c2b3d454daa6024cc20d166b2f50efde169c7fe (diff)
* Patches by Robert Whaley, 29 Nov 2004:
- update the pxa-regs.h file for PXA27x chips - add PXA27x based ADSVIX board - add support for MMC on PXA27x processors * Patch by Andrew E. Mileski, 28 Nov 2004: Fix PPC4xx SPD SDRAM detection bug * Patch by Hiroshi Ito, 26 Nov 2004: Fix logic of "test -z" and "test -n" commands
Diffstat (limited to 'common/command.c')
-rw-r--r--common/command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/command.c b/common/command.c
index 64e56af131c..2b4c5547b31 100644
--- a/common/command.c
+++ b/common/command.c
@@ -136,9 +136,9 @@ do_test (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
if (adv == 2) {
if (strcmp(ap[0], "-z") == 0)
- expr = strlen(ap[1]) == 0 ? 0 : 1;
- else if (strcmp(ap[0], "-n") == 0)
expr = strlen(ap[1]) == 0 ? 1 : 0;
+ else if (strcmp(ap[0], "-n") == 0)
+ expr = strlen(ap[1]) == 0 ? 0 : 1;
else {
expr = 1;
break;