mirror of https://github.com/thesofproject/sof.git
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:
parent
8d8de881f9
commit
b199485177
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue