summaryrefslogtreecommitdiffstats
path: root/drivers/ssb
diff options
context:
space:
mode:
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>2022-05-06 09:58:14 +0200
committerKalle Valo <kvalo@kernel.org>2022-05-11 07:29:11 +0200
commit84dc992e23df2633c7bd4f662e3f0073c126aac7 (patch)
treeeb3ad09932577dd8f0e38761f073c1c39c2694f7 /drivers/ssb
parentbrcmfmac: allow setting wlan MAC address using device tree (diff)
downloadlinux-84dc992e23df2633c7bd4f662e3f0073c126aac7.tar.xz
linux-84dc992e23df2633c7bd4f662e3f0073c126aac7.zip
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: Abaci Robot <abaci@linux.alibaba.com> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com> Acked-by: Michael Büsch <m@bues.ch> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220506075814.115059-1-jiapeng.chong@linux.alibaba.com
Diffstat (limited to 'drivers/ssb')
-rw-r--r--drivers/ssb/pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index 148bcb99c212..493bebbba521 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -914,7 +914,6 @@ static int ssb_pci_sprom_get(struct ssb_bus *bus,
err = 0;
goto out_free;
}
- pr_warn("WARNING: Invalid SPROM CRC (corrupt SPROM)\n");
}
}
err = sprom_extract(bus, sprom, buf, bus->sprom_size);