projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f26506f
)
ssb: Remove meaningless jump label to simplify the code
author
Jing Xiangfeng
<jingxiangfeng@huawei.com>
Tue, 15 Sep 2020 02:03:30 +0000
(10:03 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 21 Sep 2020 13:01:35 +0000
(16:01 +0300)
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
drivers/ssb/pci.c
patch
|
blob
|
history
diff --git
a/drivers/ssb/pci.c
b/drivers/ssb/pci.c
index
7c3ae52
..
dac5404
100644
(file)
--- 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);
}