mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: Drop #ifdef in parse_args()
Use IS_ENABLED() to avoid an extra build path. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
12
cmd/net.c
12
cmd/net.c
@@ -368,13 +368,13 @@ static int parse_args(enum proto_t proto, int argc, char *const argv[],
|
||||
}
|
||||
break;
|
||||
|
||||
#ifdef CONFIG_CMD_TFTPPUT
|
||||
case 4:
|
||||
if (parse_addr_size(argv, addrp, sizep))
|
||||
return 1;
|
||||
*fnamep = argv[3];
|
||||
break;
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_CMD_TFTPPUT)) {
|
||||
if (parse_addr_size(argv, addrp, sizep))
|
||||
return 1;
|
||||
*fnamep = argv[3];
|
||||
break;
|
||||
}
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user