summaryrefslogtreecommitdiff
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-03-15 01:45:12 +0300
committerDavid S. Miller <davem@davemloft.net>2016-03-15 02:37:03 +0300
commite3ebd894f084255fde19116955ba7054858ff5d6 (patch)
treefbdaf2b44466ea0597cbc94793bf29a324d25573 /kernel/auditsc.c
parent005bcea933629fa6c921a57aa497928d7f7e7cb6 (diff)
downloadlinux-e3ebd894f084255fde19116955ba7054858ff5d6.tar.xz
smc91x: avoid self-comparison warning
The smc91x driver defines a macro that compares its argument to itself, apparently to get a true result while using its argument to avoid a warning about unused local variables. Unfortunately, this triggers a warning with gcc-6, as the comparison is obviously useless: drivers/net/ethernet/smsc/smc91x.c: In function 'smc_hardware_send_pkt': drivers/net/ethernet/smsc/smc91x.c:563:14: error: self-comparison always evaluates to true [-Werror=tautological-compare] if (!smc_special_trylock(&lp->lock, flags)) { This replaces the macro with another one that behaves similarly, with a cast to (void) to ensure the argument is used, and using a literal 'true' as its value. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/auditsc.c')
0 files changed, 0 insertions, 0 deletions