When kwboot is invoked with -t <tty> the code implicitly assumes that one
of -b (boot message) or -d (debug message) with an image file is specified.
This is not necessarily true.

This allows kwboot -t <tty> to function.

Signed-off-by: Suriyan Ramasami <suriya...@gmail.com>
---

Changes in v1:
- First try

 tools/kwboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/kwboot.c b/tools/kwboot.c
index 1368b4c..449564e 100644
--- a/tools/kwboot.c
+++ b/tools/kwboot.c
@@ -785,7 +785,7 @@ main(int argc, char **argv)
                        perror("debugmsg");
                        goto out;
                }
-       } else {
+       } else if (bootmsg) {
                rc = kwboot_bootmsg(tty, bootmsg);
                if (rc) {
                        perror("bootmsg");
-- 
1.8.3.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to