Staging: bcm: PHSModule.c: Simplified nested if statements by linking them with logical AND in GetPhsRuleEntry()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c53f0877e
commit
18002f567f
|
@ -1017,11 +1017,10 @@ static UINT GetPhsRuleEntry(IN struct bcm_phs_classifier_table *pstClassifierTab
|
||||||
pstClassifierRule =
|
pstClassifierRule =
|
||||||
&pstClassifierTable->stOldPhsRulesList[i];
|
&pstClassifierTable->stOldPhsRulesList[i];
|
||||||
|
|
||||||
if (pstClassifierRule->bUsed) {
|
if (pstClassifierRule->bUsed &&
|
||||||
if (pstClassifierRule->u8PHSI == uiPHSI) {
|
(pstClassifierRule->u8PHSI == uiPHSI)) {
|
||||||
*ppstPhsRule = pstClassifierRule->pstPhsRule;
|
*ppstPhsRule = pstClassifierRule->pstPhsRule;
|
||||||
return i;
|
return i;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue