mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a9339b8e13
commit
1e09c106a4
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue