]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit1b612d3c84eadd8ea42d0be007fdb31c4873eb7a
treec816fe686f5f0440225757431507528131f2aeed
parentc34e352a70c629cc80c80366ed2ee24611a81a53
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