]> git.ipfire.org Git - people/ms/u-boot.git/commit
cmd: dfu: Add error handling for failed registration
authorSanchayan Maity <maitysanchayan@gmail.com>
Mon, 8 Aug 2016 11:26:17 +0000 (16:56 +0530)
committerMarek Vasut <marex@denx.de>
Tue, 27 Sep 2016 21:30:22 +0000 (23:30 +0200)
commit54a708ca06830c3fe3df8c0001ab33df784701f9
tree86d6d1d1660ae6851260fc4c25437ec66b95017e
parentcdb1808aefbc7173d687cb03de15b8ee3a671743
cmd: dfu: Add error handling for failed registration

Without this, if g_dnl_register() fails, DFU code continues on
blindly and crashes. This fix makes it simply print an error
message instead.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
[l.majewski@samsung.com - some manual tweaks needed]
common/dfu.c