summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2006-08-13 02:25:32 +0200
committerWolfgang Denk <wd@pollux.denx.de>2006-08-13 02:25:32 +0200
commitc72d9c528517e629e146ca9ce101a4888c45fac8 (patch)
tree64a849b5b6e252d5eef10081658042348b4ccc47 /common
parent7213859d112b434b1a37049e14d8e963199dca84 (diff)
parentd8f961bbdaeef4dc1af7a01e297bf2d7e25ae227 (diff)
downloadu-boot-imx-c72d9c528517e629e146ca9ce101a4888c45fac8.zip
u-boot-imx-c72d9c528517e629e146ca9ce101a4888c45fac8.tar.gz
u-boot-imx-c72d9c528517e629e146ca9ce101a4888c45fac8.tar.bz2
Merge with /home/sr/git/u-boot/denx
Diffstat (limited to 'common')
-rw-r--r--common/cmd_mii.c4
-rw-r--r--common/main.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/common/cmd_mii.c b/common/cmd_mii.c
index ee5e43e..e659536 100644
--- a/common/cmd_mii.c
+++ b/common/cmd_mii.c
@@ -117,8 +117,6 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
miiphy_speed (devname, j),
(miiphy_duplex (devname, j) == FULL)
? "FDX" : "HDX");
- } else {
- puts ("Error reading info from the PHY\n");
}
}
} else if (op == 'r') {
@@ -503,8 +501,6 @@ int do_mii (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
miiphy_speed (devname, j),
(miiphy_duplex (devname, j) == FULL)
? "FDX" : "HDX");
- } else {
- puts ("Error reading info from the PHY\n");
}
}
} else if (op[0] == 'r') {
diff --git a/common/main.c b/common/main.c
index 3788bd5..13d12a4 100644
--- a/common/main.c
+++ b/common/main.c
@@ -937,6 +937,7 @@ int readline (const char *const prompt)
#ifdef CONFIG_CMDLINE_EDITING
char *p = console_buffer;
unsigned int len=MAX_CMDBUF_SIZE;
+ int rc;
static int initted = 0;
if (!initted) {
@@ -946,8 +947,8 @@ int readline (const char *const prompt)
puts (prompt);
- cread_line(p, &len);
- return len;
+ rc = cread_line(p, &len);
+ return rc < 0 ? rc : len;
#else
char *p = console_buffer;
int n = 0; /* buffer index */