Commit 97d33bf9 authored by Lijian Zhao's avatar Lijian Zhao Committed by Ricardo Cañuelo Navarro
Browse files

depthcharge:cli: Fix build break



Current depthcharge build will failure as long as CLI enabled, fix them
all together.

BUG=N/A
TEST=Set CONFIG_CLI=Y in defconfig, and run emerge-cnlrvp depthcharge,
build pass without warning and errors.

Change-Id: Ib40b7b1c00c52c71e046ca5a719f2044079e7091
Signed-off-by: default avatarLijian Zhao <lijian.zhao@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1186134


Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: default avatarAaron Durbin <adurbin@chromium.org>
parent 567a72f6
......@@ -32,7 +32,7 @@ static NetDevice *get_net_device(void)
static int do_enet(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
NetDevice *ndev;
int ready;
int ready = 0;
if (argc < 2)
return CMD_RET_USAGE;
......
......@@ -26,8 +26,6 @@
#define MAX_ARGS_LEN 4096
static void * const payload = (void *)(uintptr_t)CONFIG_KERNEL_START;
static const char DHCP[] = "dhcp";
int do_tftpboot(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
......
......@@ -44,6 +44,8 @@ static int storage_read(int argc, char *const argv[])
int *args[] = {&base_block, &num_blocks, (int*) &dest_addr};
BlockDev *bd;
dest_addr = NULL;
for (i = 0; i < ARRAY_SIZE(args); i++)
*args[i] = strtoul(argv[i], NULL, 0);
......@@ -64,6 +66,8 @@ static int storage_write(int argc, char *const argv[])
int *args[] = {&base_block, &num_blocks, (int *) &src_addr};
BlockDev *bd;
src_addr = NULL;
for (i = 0; i < ARRAY_SIZE(args); i++)
*args[i] = strtoul(argv[i], NULL, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment