summaryrefslogtreecommitdiff
path: root/cmd/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/host.c')
-rw-r--r--cmd/host.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/host.c b/cmd/host.c
index 47a59f5ff20..e03576b4d2d 100644
--- a/cmd/host.c
+++ b/cmd/host.c
@@ -132,7 +132,10 @@ static int do_host_unbind(struct cmd_tbl *cmdtp, int flag, int argc,
ret = device_unbind(dev);
if (ret) {
- printf("Cannot unbind device '%s'\n", dev->name);
+ printf("Cannot attach file\n");
+ ret = device_unbind(dev);
+ if (ret)
+ printf("Cannot unbind device '%s'\n", dev->name);
return CMD_RET_FAILURE;
}