linux/drivers/net/ethernet/smsc
Arnd Bergmann e3ebd894f0 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>
2016-03-14 19:37:03 -04:00
..
epic100.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
Kconfig net: smsc: Add support h8300 2016-01-15 15:14:23 -05:00
Makefile
smc91c92_cs.c net: smc91c92_cs: Use setup_timer and mod_timer 2015-03-01 13:40:22 -05:00
smc91x.c smc91x: avoid self-comparison warning 2016-03-14 19:37:03 -04:00
smc91x.h net: smsc: Add support h8300 2016-01-15 15:14:23 -05:00
smc911x.c net: ethernet: smsc: drop owner assignment from platform_drivers 2014-10-20 16:21:12 +02:00
smc911x.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00
smc9194.c smsc9194: Remove uncompilable #if 0'd use of pr_dbg 2015-08-27 13:56:05 -07:00
smc9194.h
smsc911x.c phy: Add an mdio_device structure 2016-01-07 14:31:26 -05:00
smsc911x.h smsc: replace WARN_ON() with WARN_ON_SMP() 2014-08-11 14:38:29 -07:00
smsc9420.c phy: Add API for {un}registering an mdio device to a bus. 2016-01-07 14:31:26 -05:00
smsc9420.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00