summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti/tlan.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-10-10 15:41:10 +0300
committerDavid S. Miller <davem@davemloft.net>2016-10-13 16:56:00 +0300
commit1e09c106a44c2b2685a77a1ef27951381c9fcd23 (patch)
tree41d54bf2cb621c9e0c529f3004d495e4facd1eae /drivers/net/ethernet/ti/tlan.c
parenta9339b8e138d81b6ee928d0de3372c551cbd3d34 (diff)
downloadlinux-1e09c106a44c2b2685a77a1ef27951381c9fcd23.tar.xz
tlan: avoid unused label with PCI=n
While build testing with randconfig on x86, I ran into this warning that appears to have been around forever drivers/net/ethernet/ti/tlan.c: In function ‘tlan_probe1’: drivers/net/ethernet/ti/tlan.c:614:1: error: label ‘err_out’ defined but not used [-Werror=unused-label] This can be trivially avoided by just moving the label into the existing #ifdef. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/tlan.c')
-rw-r--r--drivers/net/ethernet/ti/tlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c
index ece0ea0f6b38..6c7ec1ddd475 100644
--- a/drivers/net/ethernet/ti/tlan.c
+++ b/drivers/net/ethernet/ti/tlan.c
@@ -610,8 +610,8 @@ err_out_regions:
#ifdef CONFIG_PCI
if (pdev)
pci_release_regions(pdev);
-#endif
err_out:
+#endif
if (pdev)
pci_disable_device(pdev);
return rc;