FIX: Remove unused variable.

The variable "i" shouldn't be used.

Signed-off-by: Yan Wang <yan.wang@linux.intel.com>
This commit is contained in:
Yan Wang 2018-04-16 16:24:30 +08:00 committed by Daniel Leung
parent 8d8de881f9
commit b199485177
1 changed files with 2 additions and 2 deletions

View File

@ -259,7 +259,7 @@ static int simple_write_module_reloc(struct image *image, struct module *module)
{ {
struct snd_sof_mod_hdr hdr; struct snd_sof_mod_hdr hdr;
size_t count; size_t count;
int i, err; int err;
hdr.num_blocks = 1; hdr.num_blocks = 1;
hdr.size = module->text_size + module->data_size; hdr.size = module->text_size + module->data_size;
@ -288,7 +288,7 @@ static int simple_write_module_reloc(struct image *image, struct module *module)
err = write_block_reloc(image, module); err = write_block_reloc(image, module);
if (err < 0) { if (err < 0) {
fprintf(stderr, "error: failed to write section #%d\n", i); fprintf(stderr, "error: failed to write section #%d\n", err);
return err; return err;
} }