Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18002f56 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: PHSModule.c: Simplified nested if statements by linking them...


Staging: bcm: PHSModule.c: Simplified nested if statements by linking them with logical AND in GetPhsRuleEntry()

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 1c53f087
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -1017,13 +1017,12 @@ 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;
		}
		}
	}
	}
	}


	*ppstPhsRule = NULL;
	*ppstPhsRule = NULL;
	return PHS_INVALID_TABLE_INDEX;
	return PHS_INVALID_TABLE_INDEX;