Commit 821a464c authored by Sarah Khan's avatar Sarah Khan Committed by Greg Kroah-Hartman

staging: bcm: Removed unnecessary braces after return

WARNING: else is generally not useful after return
checkpatch.pl warning in PHSModule.c
Signed-off-by: default avatarSarah Khan <sarahjmi07@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9d1ffa07
...@@ -1244,19 +1244,15 @@ static UINT CreateClassifierPHSRule(IN B_UINT16 uiClsId, ...@@ -1244,19 +1244,15 @@ static UINT CreateClassifierPHSRule(IN B_UINT16 uiClsId,
if (eClsContext == eActiveClassifierRuleContext) if (eClsContext == eActiveClassifierRuleContext)
return ERR_CLSASSIFIER_TABLE_FULL; return ERR_CLSASSIFIER_TABLE_FULL;
else { /* Lets replace the oldest rule if we are looking in
/* Lets replace the oldest rule if we are looking in * old Rule table */
* old Rule table */ if (psaClassifiertable->uiOldestPhsRuleIndex >= MAX_PHSRULE_PER_SF)
if (psaClassifiertable->uiOldestPhsRuleIndex >= MAX_PHSRULE_PER_SF) psaClassifiertable->uiOldestPhsRuleIndex = 0;
psaClassifiertable->uiOldestPhsRuleIndex = 0;
iClassifierIndex =
psaClassifiertable->uiOldestPhsRuleIndex;
psClassifierRules =
&psaClassifiertable->stOldPhsRulesList[iClassifierIndex];
(psaClassifiertable->uiOldestPhsRuleIndex)++; iClassifierIndex = psaClassifiertable->uiOldestPhsRuleIndex;
} psClassifierRules = &psaClassifiertable->stOldPhsRulesList[iClassifierIndex];
psaClassifiertable->uiOldestPhsRuleIndex++;
} }
if (eClsContext == eOldClassifierRuleContext) { if (eClsContext == eOldClassifierRuleContext) {
......
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