Re: [U-Boot] [RFC PATCH 07/15] cmd: fpga: Clean wrong_parms handling

2018-07-18 Thread Simon Glass
On 18 July 2018 at 09:16, Michal Simek wrote: > 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 > --- > >

[U-Boot] [RFC PATCH 07/15] cmd: fpga: Clean wrong_parms handling

2018-07-18 Thread Michal Simek
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 --- cmd/fpga.c | 35 --- 1 file