mirror of https://gitee.com/openkylin/linux.git
i40e: cleanup unnecessary parens
Clean up unnecessary parenthesis. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
This commit is contained in:
parent
64e1dcbb58
commit
5056716ca2
|
@ -976,7 +976,7 @@ i40e_status i40e_clean_arq_element(struct i40e_hw *hw,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set next_to_use to head */
|
/* set next_to_use to head */
|
||||||
ntu = (rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK);
|
ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK;
|
||||||
if (ntu == ntc) {
|
if (ntu == ntc) {
|
||||||
/* nothing to do - shouldn't need to update ring's values */
|
/* nothing to do - shouldn't need to update ring's values */
|
||||||
ret_code = I40E_ERR_ADMIN_QUEUE_NO_WORK;
|
ret_code = I40E_ERR_ADMIN_QUEUE_NO_WORK;
|
||||||
|
|
|
@ -906,7 +906,7 @@ i40e_status i40evf_clean_arq_element(struct i40e_hw *hw,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set next_to_use to head */
|
/* set next_to_use to head */
|
||||||
ntu = (rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK);
|
ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK;
|
||||||
if (ntu == ntc) {
|
if (ntu == ntc) {
|
||||||
/* nothing to do - shouldn't need to update ring's values */
|
/* nothing to do - shouldn't need to update ring's values */
|
||||||
ret_code = I40E_ERR_ADMIN_QUEUE_NO_WORK;
|
ret_code = I40E_ERR_ADMIN_QUEUE_NO_WORK;
|
||||||
|
|
Loading…
Reference in New Issue