Booleans should not be compared to true or false but be directly tested or tested with !. Done via cocci script: @@ bool t; @@ - t == true + t @@ bool t; @@ - t != true + !t @@ bool t; @@ - t == false + !t @@ bool t; @@ - t != false + t Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| ixgb.h | ||
| ixgb_ee.c | ||
| ixgb_ee.h | ||
| ixgb_ethtool.c | ||
| ixgb_hw.c | ||
| ixgb_hw.h | ||
| ixgb_ids.h | ||
| ixgb_main.c | ||
| ixgb_osdep.h | ||
| ixgb_param.c | ||
| Makefile | ||