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:
parent
0a8314e06c
commit
f1b0e65941
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348445
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user