mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 21:35:07 +00:00
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
This commit is contained in:
parent
f26506f06b
commit
41650c45fb
@ -1164,17 +1164,12 @@ void ssb_pci_exit(struct ssb_bus *bus)
|
|||||||
int ssb_pci_init(struct ssb_bus *bus)
|
int ssb_pci_init(struct ssb_bus *bus)
|
||||||
{
|
{
|
||||||
struct pci_dev *pdev;
|
struct pci_dev *pdev;
|
||||||
int err;
|
|
||||||
|
|
||||||
if (bus->bustype != SSB_BUSTYPE_PCI)
|
if (bus->bustype != SSB_BUSTYPE_PCI)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pdev = bus->host_pci;
|
pdev = bus->host_pci;
|
||||||
mutex_init(&bus->sprom_mutex);
|
mutex_init(&bus->sprom_mutex);
|
||||||
err = device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
|
|
||||||
if (err)
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
out:
|
return device_create_file(&pdev->dev, &dev_attr_ssb_sprom);
|
||||||
return err;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user