All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 13/14] ixgbe: Remove unneeded conversions to bool
@ 2017-03-15 16:23 Andrew F. Davis
  0 siblings, 0 replies; only message in thread
From: Andrew F. Davis @ 2017-03-15 16:23 UTC (permalink / raw)
  To: kernel-janitors

Found with scripts/coccinelle/misc/boolconv.cocci.

Signed-off-by: Andrew F. Davis <afd@ti.com>
---
 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
index c38d50c1fcf7..5cffcbeab833 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
@@ -82,8 +82,7 @@ bool ixgbe_device_supports_autoneg_fc(struct ixgbe_hw *hw)
 		hw->mac.ops.check_link(hw, &speed, &link_up, false);
 		/* if link is down, assume supported */
 		if (link_up)
-			supported = speed = IXGBE_LINK_SPEED_1GB_FULL ?
-				true : false;
+			supported = speed = IXGBE_LINK_SPEED_1GB_FULL;
 		else
 			supported = true;
 		break;
-- 
2.11.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-15 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 16:23 [PATCH 13/14] ixgbe: Remove unneeded conversions to bool Andrew F. Davis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.