diff options
author | Tom Rini <trini@konsulko.com> | 2019-07-18 20:32:07 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-07-18 20:32:07 -0400 |
commit | 62a09f45ab824c5fdebf0217c774bededf223232 (patch) | |
tree | 32ad59e054f8c1640374b0eee25eb4e6695e2a16 /cmd | |
parent | 0de815356474912ef5bef9a69f0327a5a93bb2c2 (diff) | |
parent | bbfc562719c463ba6e7b03125aedd5720a325d2d (diff) | |
download | u-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.c | 5 |
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(); |