summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJing Xiangfeng <jingxiangfeng@huawei.com>2020-09-15 05:03:30 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-09-21 16:01:35 +0300
commit41650c45fbd2d687c5d140be1779600d84201b72 (patch)
treef3cf4f10da4116072fe5c0d660fdadb78cd5e0f8 /drivers
parentf26506f06bf8940d2e6076348b47b59df81c75f6 (diff)
downloadlinux-41650c45fbd2d687c5d140be1779600d84201b72.tar.xz
ssb: Remove meaningless jump label to simplify the code
The out jump label has nothing to do. So remove it to simplify the code. Signed-off-by: Jing Xiangfeng <jingxiangfeng@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200915020330.96067-1-jingxiangfeng@huawei.com
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ssb/pci.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index 7c3ae52f2b15..dac54041ad8d 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -1164,17 +1164,12 @@ void ssb_pci_exit(struct ssb_bus *bus)
int ssb_pci_init(struct ssb_bus *bus)
{
struct pci_dev *pdev;
- int err;
if (bus->bustype != SSB_BUSTYPE_PCI)
return 0;
pdev = bus->host_pci;
mutex_init(&bus->sprom_mutex);
- err = device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
- if (err)
- goto out;
-out:
- return err;
+ return device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
}