Staging: bcm: PHSModule.c: Replaced indentation level with goto jump on bad condition
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
3ed150a178
commit
c8020cc93e
1 changed files with 35 additions and 32 deletions
|
@ -895,7 +895,9 @@ static void free_phs_serviceflow_rules(struct bcm_phs_table *psServiceFlowRulesT
|
|||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL,
|
||||
"=======>\n");
|
||||
|
||||
if (psServiceFlowRulesTable) {
|
||||
if (!psServiceFlowRulesTable)
|
||||
goto out;
|
||||
|
||||
for (i = 0; i < MAX_SERVICEFLOWS; i++) {
|
||||
struct bcm_phs_entry stServiceFlowEntry =
|
||||
psServiceFlowRulesTable->stSFList[i];
|
||||
|
@ -937,7 +939,8 @@ static void free_phs_serviceflow_rules(struct bcm_phs_table *psServiceFlowRulesT
|
|||
pstClassifierRulesTable = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
out:
|
||||
|
||||
kfree(psServiceFlowRulesTable);
|
||||
psServiceFlowRulesTable = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue