Skip to contentSkip to conversation

ssb: Remove meaningless jump label to simplify the code

PATCH In review Jing Xiangfeng 2 participants 2 messages Sep 15, 2020 – Sep 21, 2020 Sonics silicon backplane driver (ssb)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ssb: Remove meaningless jump label to simplify the code

The out jump label has nothing to do. So remove it to simplify the code.

---
 drivers/ssb/pci.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/ssb/pci.c +1 -6
index 7c3ae52f2b15..dac54041ad8d 100644
@@ -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);
 }
Signature · 1 line
2.17.1
#1 lore raw
Quoted 3 lines · Jing Xiangfeng

The out jump label has nothing to do. So remove it to simplify the code.

Patch applied to wireless-drivers-next.git, thanks.

41650c45fbd2 ssb: Remove meaningless jump label to simplify the code

Signature · 3 lines
https://patchwork.kernel.org/patch/11775319/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches