]> git.baikalelectronics.ru Git - kernel.git/commit
smc91x: improve definition of debug macros
authorZi Shen Lim <zlim.lnx@gmail.com>
Wed, 23 Apr 2014 03:04:42 +0000 (20:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2014 17:07:48 +0000 (13:07 -0400)
commit4c2b7846035d880727747713a7a4fdfc5f30a247
tree2f7adac460770d495e43038a790f3ddd32b7f07f
parentfe295989a0449d06117e5f27c5879bfc158f00f4
smc91x: improve definition of debug macros

Redefine some macros that were conditioned upon SMC_DEBUG level.

By allowing compiler to verify parameters used by these macros
unconditionally, we can flag compilation failures.

Compiler will still optimize out the unused code path depending on
SMC_DEBUG, so this is a net gain.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/smsc/smc91x.c