commit | 9dbc4f95f1b1d07a4e74a735abd393778cdeb6a8 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Tue Feb 27 02:16:53 2018 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Feb 27 02:16:52 2018 -0800 |
tree | 68e6d6b8fb1036a2379182a10b92c272a6023916 | |
parent | d44c0cb8183b80e35141acad9bed304c5bf816c6 [diff] | |
parent | 23dfc73b5b49bf80f32cc0aca1f596e2380b95c9 [diff] |
Merge "ipq40xx: nand: Initialize nand flash device before flashing"
diff --git a/common/cmd_nand.c b/common/cmd_nand.c index a6b67e2..190275d 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c
@@ -415,7 +415,8 @@ } dev = (int)simple_strtoul(argv[2], NULL, 10); - set_dev(dev); + if (set_dev(dev)) + return 1; return 0; }