aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-04-25 13:14:06 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-04-25 13:14:06 +0000
commit490e73cc01cecda152bc63fbf30f83bcc529739f (patch)
treefba1c317468e5fde429cc9f20fc53dbcfa41b637
parent1add3aeb4fb6e1689312668b4ca62037db753ee7 (diff)
downloadsrc-490e73cc01cecda152bc63fbf30f83bcc529739f.tar.gz
src-490e73cc01cecda152bc63fbf30f83bcc529739f.zip
MFC r348445 (by lwhsu):
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 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20428
Notes
Notes: svn path=/stable/10/; revision=360304
-rw-r--r--sys/dev/ixl/i40e_common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ixl/i40e_common.c b/sys/dev/ixl/i40e_common.c
index 2a5f49902077..2508b0707dcd 100644
--- a/sys/dev/ixl/i40e_common.c
+++ b/sys/dev/ixl/i40e_common.c
@@ -374,13 +374,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;
}