提交 c8020cc9 编写于 作者: M Matthias Beyer 提交者: Greg Kroah-Hartman

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

Signed-off-by: NMatthias Beyer <mail@beyermatthias.de>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3ed150a1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册