1
0
Fork 0

MLK-20189-10: ASoC: fsl: dsp: Avoid unnecessary check

strtab is always non-null so remove unnecessary check.

This is a follow up of patch
167a6d79f ("ASoC: fsl: Skip checking for string section type")
and finally fixes CID3901026

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
pull/10/head
Daniel Baluta 2018-11-13 15:21:36 +02:00
parent 1bbc273bd5
commit de2f62c6a5
1 changed files with 4 additions and 7 deletions

View File

@ -669,13 +669,10 @@ static void dsp_load_firmware(const struct firmware *fw, void *context)
shdr->sh_addr == 0 || shdr->sh_size == 0)
continue;
if (strtab) {
dev_dbg(dev, "%sing %s @ 0x%08lx (%ld bytes)\n",
(shdr->sh_type == SHT_NOBITS) ? "Clear" : "Load",
&strtab[shdr->sh_name],
(unsigned long)shdr->sh_addr,
(long)shdr->sh_size);
}
dev_dbg(dev, "%sing %s @ 0x%08lx (%ld bytes)\n",
(shdr->sh_type == SHT_NOBITS) ? "Clear" : "Load",
&strtab[shdr->sh_name], (unsigned long)shdr->sh_addr,
(long)shdr->sh_size);
sh_addr = shdr->sh_addr;