]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: clk: Check return value from soc_clk_dump
authorMichal Simek <michal.simek@xilinx.com>
Thu, 19 Apr 2018 13:15:25 +0000 (15:15 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 23 Apr 2018 11:15:32 +0000 (13:15 +0200)
commit0068c196bdfff8710b520b9f5136c985ef2cb3c4
tree4efa0d9f6e36beca918e2ec609636b5b657632d2
parent5f52b9aed8c26a8d4f59b766a6e3434630201e30
cmd: clk: Check return value from soc_clk_dump

In case of error in soc_clk_dump function are returned different values
then CMD return values (-1, 0, 1).

For example:
ZynqMP> clk dump
exit not allowed from main input shel

The patch is checking all negative return values and return
CMD_RET_FAILURE which is proper reaction for these cases.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
cmd/clk.c