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
parent
1bbc273bd5
commit
de2f62c6a5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue