Commit 31f4f3fb authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: PHSModule.c: Replaced nested if statements with logical AND...

Staging: bcm: PHSModule.c: Replaced nested if statements with logical AND concatenation of the conditions
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 413852b6
...@@ -519,8 +519,9 @@ ULONG PhsDeletePHSRule(IN void *pvContext, ...@@ -519,8 +519,9 @@ ULONG PhsDeletePHSRule(IN void *pvContext,
if (pstClassifierRulesTable) { if (pstClassifierRulesTable) {
for (nClsidIndex = 0; nClsidIndex < MAX_PHSRULE_PER_SF; nClsidIndex++) { for (nClsidIndex = 0; nClsidIndex < MAX_PHSRULE_PER_SF; nClsidIndex++) {
curr_entry = &pstClassifierRulesTable->stActivePhsRulesList[nClsidIndex]; curr_entry = &pstClassifierRulesTable->stActivePhsRulesList[nClsidIndex];
if (curr_entry->bUsed && curr_entry->pstPhsRule) { if (curr_entry->bUsed &&
if (curr_entry->pstPhsRule->u8PHSI == u8PHSI) { curr_entry->pstPhsRule &&
(curr_entry->pstPhsRule->u8PHSI == u8PHSI)) {
if (curr_entry->pstPhsRule->u8RefCnt) if (curr_entry->pstPhsRule->u8RefCnt)
curr_entry->pstPhsRule->u8RefCnt--; curr_entry->pstPhsRule->u8RefCnt--;
...@@ -535,7 +536,6 @@ ULONG PhsDeletePHSRule(IN void *pvContext, ...@@ -535,7 +536,6 @@ ULONG PhsDeletePHSRule(IN void *pvContext,
} }
} }
} }
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment