Commit c8020cc9 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: PHSModule.c: Replaced indentation level with goto jump on bad condition

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 3ed150a1
...@@ -895,7 +895,9 @@ static void free_phs_serviceflow_rules(struct bcm_phs_table *psServiceFlowRulesT ...@@ -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, BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, PHS_DISPATCH, DBG_LVL_ALL,
"=======>\n"); "=======>\n");
if (psServiceFlowRulesTable) { if (!psServiceFlowRulesTable)
goto out;
for (i = 0; i < MAX_SERVICEFLOWS; i++) { for (i = 0; i < MAX_SERVICEFLOWS; i++) {
struct bcm_phs_entry stServiceFlowEntry = struct bcm_phs_entry stServiceFlowEntry =
psServiceFlowRulesTable->stSFList[i]; psServiceFlowRulesTable->stSFList[i];
...@@ -937,7 +939,8 @@ static void free_phs_serviceflow_rules(struct bcm_phs_table *psServiceFlowRulesT ...@@ -937,7 +939,8 @@ static void free_phs_serviceflow_rules(struct bcm_phs_table *psServiceFlowRulesT
pstClassifierRulesTable = NULL; pstClassifierRulesTable = NULL;
} }
} }
}
out:
kfree(psServiceFlowRulesTable); kfree(psServiceFlowRulesTable);
psServiceFlowRulesTable = NULL; psServiceFlowRulesTable = NULL;
......
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