cmd: fpga: Clean wrong_parms handling
authorMichal Simek <michal.simek@xilinx.com>
Wed, 30 May 2018 09:28:57 +0000 (11:28 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 11 Sep 2018 08:58:42 +0000 (10:58 +0200)
commit5cadab60fbd917648335d5d672eb3b1752d5b225
treec816fe686f5f0440225757431507528131f2aeed
parentaa93ac59dcf6c7a7593cd7d67b8f8a5b01353efb
cmd: fpga: Clean wrong_parms handling

There is no reason to check parameters in separate switch. Check them
directly when they are read. Also there is no reason to check loadmk
case separately because fpga_data address must be non zero too.

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