Skip to content

Commit

Permalink
igb: Cleanups to remove return parentheses
Browse files Browse the repository at this point in the history
This patch fixes ERROR:RETURN_PARENTHESES from checkpatch file check.

Signed-off-by: Carolyn Wyborny <carolyn.wyborny@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Carolyn Wyborny authored and Jeff Kirsher committed Apr 25, 2014
1 parent b26141d commit da1f1df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/ethernet/intel/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ static int igb_get_i2c_data(void *data)
struct e1000_hw *hw = &adapter->hw;
s32 i2cctl = rd32(E1000_I2CPARAMS);

return ((i2cctl & E1000_I2C_DATA_IN) != 0);
return !!(i2cctl & E1000_I2C_DATA_IN);
}

/**
Expand Down Expand Up @@ -638,7 +638,7 @@ static int igb_get_i2c_clk(void *data)
struct e1000_hw *hw = &adapter->hw;
s32 i2cctl = rd32(E1000_I2CPARAMS);

return ((i2cctl & E1000_I2C_CLK_IN) != 0);
return !!(i2cctl & E1000_I2C_CLK_IN);
}

static const struct i2c_algo_bit_data igb_i2c_algo = {
Expand Down Expand Up @@ -7056,7 +7056,7 @@ static bool igb_clean_rx_irq(struct igb_q_vector *q_vector, const int budget)
if (cleaned_count)
igb_alloc_rx_buffers(rx_ring, cleaned_count);

return (total_packets < budget);
return total_packets < budget;
}

static bool igb_alloc_mapped_page(struct igb_ring *rx_ring,
Expand Down

0 comments on commit da1f1df

Please sign in to comment.