summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-07-18 20:32:07 -0400
committerTom Rini <trini@konsulko.com>2019-07-18 20:32:07 -0400
commit62a09f45ab824c5fdebf0217c774bededf223232 (patch)
tree32ad59e054f8c1640374b0eee25eb4e6695e2a16 /cmd
parent0de815356474912ef5bef9a69f0327a5a93bb2c2 (diff)
parentbbfc562719c463ba6e7b03125aedd5720a325d2d (diff)
downloadu-boot-62a09f45ab824c5fdebf0217c774bededf223232.tar.gz
u-boot-62a09f45ab824c5fdebf0217c774bededf223232.tar.bz2
u-boot-62a09f45ab824c5fdebf0217c774bededf223232.zip
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mdio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/mdio.c b/cmd/mdio.c
index a6fa9266d0..add6440813 100644
--- a/cmd/mdio.c
+++ b/cmd/mdio.c
@@ -268,6 +268,11 @@ static int do_mdio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
break;
}
+ if (!bus) {
+ puts("No MDIO bus found\n");
+ return CMD_RET_FAILURE;
+ }
+
if (op[0] == 'l') {
mdio_list_devices();