]> git.baikalelectronics.ru Git - kernel.git/commit
net: smc911x: avoid unused variable warnings
authorArnd Bergmann <arnd@arndb.de>
Mon, 21 Mar 2016 08:30:59 +0000 (09:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Mar 2016 15:26:12 +0000 (11:26 -0400)
commit88e9d3307a93d9f3dd996c20c5085b4615d5d824
treed7ffa8f3b7d6842e56ad70d155eb608427d13939
parent11b4e7a6b8a354ba0524de96c20e618b56465e2e
net: smc911x: avoid unused variable warnings

The change to use the generic DMA engine API in the smc911x
driver has led to a harmless warning about unused local variables:

smsc/smc911x.c: In function 'smc911x_probe':
smsc/smc911x.c:1796:20: error: unused variable 'param'
smsc/smc911x.c:1795:17: error: unused variable 'mask'
smsc/smc911x.c:1794:26: error: unused variable 'config'

This puts the variable declarations inside of the same #ifdef
that protects their use.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 8c8c91cec3da ("net: smc911x: convert pxa dma to dmaengine")
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc911x.c