mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-15 09:03:59 +08:00
staging: bcm: Removed unnecessary braces after return
WARNING: else is generally not useful after return checkpatch.pl warning in PHSModule.c Signed-off-by: Sarah Khan <sarahjmi07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9d1ffa0724
commit
821a464c1c
@ -1244,19 +1244,15 @@ static UINT CreateClassifierPHSRule(IN B_UINT16 uiClsId,
|
||||
|
||||
if (eClsContext == eActiveClassifierRuleContext)
|
||||
return ERR_CLSASSIFIER_TABLE_FULL;
|
||||
else {
|
||||
/* Lets replace the oldest rule if we are looking in
|
||||
* old Rule table */
|
||||
if (psaClassifiertable->uiOldestPhsRuleIndex >= MAX_PHSRULE_PER_SF)
|
||||
psaClassifiertable->uiOldestPhsRuleIndex = 0;
|
||||
/* Lets replace the oldest rule if we are looking in
|
||||
* old Rule table */
|
||||
if (psaClassifiertable->uiOldestPhsRuleIndex >= MAX_PHSRULE_PER_SF)
|
||||
psaClassifiertable->uiOldestPhsRuleIndex = 0;
|
||||
|
||||
iClassifierIndex =
|
||||
psaClassifiertable->uiOldestPhsRuleIndex;
|
||||
psClassifierRules =
|
||||
&psaClassifiertable->stOldPhsRulesList[iClassifierIndex];
|
||||
iClassifierIndex = psaClassifiertable->uiOldestPhsRuleIndex;
|
||||
psClassifierRules = &psaClassifiertable->stOldPhsRulesList[iClassifierIndex];
|
||||
|
||||
(psaClassifiertable->uiOldestPhsRuleIndex)++;
|
||||
}
|
||||
psaClassifiertable->uiOldestPhsRuleIndex++;
|
||||
}
|
||||
|
||||
if (eClsContext == eOldClassifierRuleContext) {
|
||||
|
Loading…
Reference in New Issue
Block a user