From a70f0e400cb50c0485c97b8716db8c76929b2f45 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Tue, 17 Nov 2020 10:49:20 +0100 Subject: [PATCH] cmd: dfu: fix using the default parameters from envirnoment This fixes commit 3768df292a8 ("samsung: misc_init_r: insert call to platform_setup()") after rebase, because due to other changes, that code was never reached. Signed-off-by: Marek Szyprowski Change-Id: I69b70f61ca5d544744a440bd1d355ebb5072d597 --- cmd/dfu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/dfu.c b/cmd/dfu.c index f1eba23..5c4912b 100644 --- a/cmd/dfu.c +++ b/cmd/dfu.c @@ -21,10 +21,10 @@ static int do_dfu(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { - +#ifndef CONFIG_DFU_OVER_USB if (argc < 2) return CMD_RET_USAGE; - +#endif #ifdef CONFIG_DFU_OVER_USB char *usb_controller = argv[1]; #endif -- 2.7.4