Staging: bcm: PHSModule.c: Replaced if-else return code with simple return assertion
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 15 Jul 2014 07:43:14 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jul 2014 15:09:49 +0000 (08:09 -0700)
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>
drivers/staging/bcm/PHSModule.c

index bdc29a5ae4caebfdddabb33a960f53d93a7ba379..805ecb088a0170e7c8a4579c14e4bfc8d2d719a4 100644 (file)
@@ -1343,15 +1343,7 @@ static bool DerefPhsRule(IN B_UINT16  uiClsId,
        if (pstPhsRule->u8RefCnt)
                pstPhsRule->u8RefCnt--;
 
-       if (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;
+       return (0 == pstPhsRule->u8RefCnt);
 }
 
 static void dbg_print_st_cls_entry(struct bcm_mini_adapter *ad,
This page took 0.025325 seconds and 5 git commands to generate.