Commit 84dc992e authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Kalle Valo

ssb: remove unreachable code

Clean up the following smatch warning:

drivers/ssb/pci.c:917 ssb_pci_sprom_get() warn: ignoring unreachable
code.
Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: default avatarMichael Büsch <m@bues.ch>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220506075814.115059-1-jiapeng.chong@linux.alibaba.com
parent 716c220b
...@@ -914,7 +914,6 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus, ...@@ -914,7 +914,6 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
err = 0; err = 0;
goto out_free; goto out_free;
} }
pr_warn("WARNING: Invalid SPROM CRC (corrupt SPROM)\n");
} }
} }
err = sprom_extract(bus, sprom, buf, bus->sprom_size); err = sprom_extract(bus, sprom, buf, bus->sprom_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment