]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: fpga: Move parameter checking for loadfs/loads
authorMichal Simek <michal.simek@xilinx.com>
Wed, 30 May 2018 09:18:38 +0000 (11:18 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Sep 2018 08:58:41 +0000 (10:58 +0200)
commit44d839bd5f3c7508c50fc083a48425188022d958
tree3b184938340d3abf85d217741b98aa2da32f5b52
parentccd65203275f74b5bb6fa8c7920627493c28e65f
cmd: fpga: Move parameter checking for loadfs/loads

There is no reason to check parameters in separate switch before main
one. This patch is simplifying error path and checking parameters right
after assignment.

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