Add the missing braces to fix the code not guarded by the if clause and has
misleading indentation. This is found by gcc -Wmisleading-indentation Approved by: erj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20428
This commit is contained in:
@@ -383,13 +383,14 @@ void i40e_debug_aq(struct i40e_hw *hw, enum i40e_debug_mask mask, void *desc,
|
||||
**/
|
||||
bool i40e_check_asq_alive(struct i40e_hw *hw)
|
||||
{
|
||||
if (hw->aq.asq.len)
|
||||
if (hw->aq.asq.len) {
|
||||
if (!i40e_is_vf(hw))
|
||||
return !!(rd32(hw, hw->aq.asq.len) &
|
||||
I40E_PF_ATQLEN_ATQENABLE_MASK);
|
||||
if (i40e_is_vf(hw))
|
||||
else
|
||||
return !!(rd32(hw, hw->aq.asq.len) &
|
||||
I40E_VF_ATQLEN1_ATQENABLE_MASK);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user