summaryrefslogtreecommitdiff
path: root/commands/spd_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/spd_decode.c')
-rw-r--r--commands/spd_decode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/spd_decode.c b/commands/spd_decode.c
index e8ee339a91..fa8fe86cf8 100644
--- a/commands/spd_decode.c
+++ b/commands/spd_decode.c
@@ -16,13 +16,12 @@
static int do_spd_decode(int argc, char *argv[])
{
int ret;
- size_t size;
void *data;
if (argc != 2)
return COMMAND_ERROR_USAGE;
- ret = read_file_2(argv[1], &size, &data, 256);
+ ret = read_file_2(argv[1], NULL, &data, 256);
if (ret && ret != -EFBIG) {
printf("unable to read %s: %s\n", argv[1], strerror(-ret));
return COMMAND_ERROR;