Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit abc34d75 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller
Browse files

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: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 79d3b59a ("net: smc911x: convert pxa dma to dmaengine")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c191307
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment