]> git.baikalelectronics.ru Git - kernel.git/commit
tlan: avoid unused label with PCI=n
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Oct 2016 12:41:10 +0000 (14:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Oct 2016 13:56:00 +0000 (09:56 -0400)
commit9bf243b2b16feea88fd5eafd4dd4a1b5fc9c28b0
tree41d54bf2cb621c9e0c529f3004d495e4facd1eae
parent590fc853b3dd0f1b1e3899ced4dafc8ec711dad7
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>
drivers/net/ethernet/ti/tlan.c