summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig1
-rw-r--r--cmd/bootflow.c2
-rw-r--r--cmd/load.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 46600e5007d..50625e7c16a 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -192,6 +192,7 @@ config CMD_HISTORY
config CMD_LICENSE
bool "license"
select BUILD_BIN2C
+ depends on GZIP
help
Print GPL license text
diff --git a/cmd/bootflow.c b/cmd/bootflow.c
index cc6dfae1668..be5d7d8e743 100644
--- a/cmd/bootflow.c
+++ b/cmd/bootflow.c
@@ -543,8 +543,6 @@ static int do_bootflow_cmdline(struct cmd_tbl *cmdtp, int flag, int argc,
op = argv[1];
arg = argv[2];
if (*op == 's') {
- if (argc < 3)
- return CMD_RET_USAGE;
val = argv[3] ?: (const char *)BOOTFLOWCL_EMPTY;
}
diff --git a/cmd/load.c b/cmd/load.c
index 2715cf5957e..540361b43f0 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -230,7 +230,7 @@ static ulong load_serial(long offset)
static int read_record(char *buf, ulong len)
{
char *p;
- char c;
+ int c;
--len; /* always leave room for terminating '\0' byte */
@@ -827,7 +827,7 @@ static void handle_send_packet(int n)
/* k_recv receives a OS Open image file over kermit line */
static int k_recv(void)
{
- char new_char;
+ int new_char;
char k_state, k_state_saved;
int sum;
int done;