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

Commit 1c53f087 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 GetServiceFlowEntry()

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 c842dd2d
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -990,13 +990,12 @@ static UINT GetClassifierEntry(IN struct bcm_phs_classifier_table *pstClassifier
			psClassifierRules =
				&pstClassifierTable->stOldPhsRulesList[i];

		if (psClassifierRules->bUsed) {
			if (psClassifierRules->uiClassifierRuleId == uiClsid) {
		if (psClassifierRules->bUsed &&
		   (psClassifierRules->uiClassifierRuleId == uiClsid)) {
			*ppstClassifierEntry = psClassifierRules;
			return i;
		}
	}
	}

	*ppstClassifierEntry = NULL;
	return PHS_INVALID_TABLE_INDEX;