linux/drivers/net/ethernet/intel/e1000e
Bruce Allan 04499ec4ee e1000e: cleanup boolean logic
Replace occurrences of 'if (<bool expr> == <1|0>)' with
'if ([!]<bool expr>)'

Replace occurrences of '<bool var> = (<non-bool expr>) ? true : false'
with '<bool var> = <non-bool expr>'.

Replace occurrence of '<bool var> = <non-bool expr>' with
'<bool var> = !!<non-bool expr>'

While the latter replacement is not really necessary, it is done here for
consistency and clarity.  No functional changes.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-04-14 02:05:00 -07:00
..
80003es2lan.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00
82571.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00
defines.h
e1000.h
ethtool.c
hw.h
ich8lan.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00
mac.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00
Makefile
manage.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00
netdev.c
nvm.c
param.c
phy.c e1000e: cleanup boolean logic 2012-04-14 02:05:00 -07:00