mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
cmd: fpga: Remove parameter checking from fpga loadfs command
Parameter checking is dead code because all the time there must be all params assigned. If they are not assigned there is no 9th parameters passed and checking before return CMD_RET_USAGE. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
44d839bd5f
commit
aa93ac59dc
1 changed files with 0 additions and 7 deletions
|
@ -124,13 +124,6 @@ int do_fpga(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|||
fpga_fsinfo.dev_part = argv[7];
|
||||
fpga_fsinfo.filename = argv[8];
|
||||
|
||||
/* Blocksize can be zero */
|
||||
if (!fpga_fsinfo.interface || !fpga_fsinfo.dev_part ||
|
||||
!fpga_fsinfo.filename) {
|
||||
puts("ERR: Wrong interface, dev_part or filename\n");
|
||||
return CMD_RET_USAGE;
|
||||
}
|
||||
|
||||
argc = 5;
|
||||
break;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue