cmd: fpga: Cleanup error handling in connection to FPGA_NONE
authorMichal Simek <michal.simek@xilinx.com>
Wed, 30 May 2018 08:04:34 +0000 (10:04 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Sep 2018 08:58:41 +0000 (10:58 +0200)
commitccd65203275f74b5bb6fa8c7920627493c28e65f
treeda78b87d3390b5148b453225421630c6b1383532
parent323fe38e74a96a4585f04c356baa0b739e7b34b5
cmd: fpga: Cleanup error handling in connection to FPGA_NONE

Incorrect command is already handled and FPGA_NONE should be used only
one. In case of error CMD_RET_USAGE can be returned directly without any
addition logic around.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fpga.c