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

Staging: bcm: PHSModule.c: Replaced if-else return code with simple return assertion

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>
上级 91283491
...@@ -1343,15 +1343,7 @@ static bool DerefPhsRule(IN B_UINT16 uiClsId, ...@@ -1343,15 +1343,7 @@ static bool DerefPhsRule(IN B_UINT16 uiClsId,
if (pstPhsRule->u8RefCnt) if (pstPhsRule->u8RefCnt)
pstPhsRule->u8RefCnt--; pstPhsRule->u8RefCnt--;
if (0 == pstPhsRule->u8RefCnt) { return (0 == pstPhsRule->u8RefCnt);
/*
* if(pstPhsRule->u8PHSI)
* Store the currently active rule into the old rules list
* CreateClassifierPHSRule(uiClsId,psaClassifiertable,pstPhsRule,eOldClassifierRuleContext,pstPhsRule->u8PHSI);
*/
return TRUE;
} else
return false;
} }
static void dbg_print_st_cls_entry(struct bcm_mini_adapter *ad, static void dbg_print_st_cls_entry(struct bcm_mini_adapter *ad,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册