]> git.baikalelectronics.ru Git - uboot.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)
commit7b0c967938e8ad2cab87ac34ccc7af20606021f3
tree3b184938340d3abf85d217741b98aa2da32f5b52
parent8a3ca092f38838aec6714d67d7f64accf78ecf2f
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