diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-07-15 09:43:14 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-15 08:09:49 -0700 |
commit | 3be738ad55d8e2b9d949eb0d830de5aa4d4f8e05 (patch) | |
tree | 8374b154fca59d57df025820a703ad077dc7cc50 /drivers/staging/bcm | |
parent | 91283491c63c44cec6db9051a50d97a28c77e22d (diff) | |
download | linux-stable-3be738ad55d8e2b9d949eb0d830de5aa4d4f8e05.tar.gz linux-stable-3be738ad55d8e2b9d949eb0d830de5aa4d4f8e05.tar.bz2 linux-stable-3be738ad55d8e2b9d949eb0d830de5aa4d4f8e05.zip |
Staging: bcm: PHSModule.c: Replaced if-else return code with simple return assertion
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>
Diffstat (limited to 'drivers/staging/bcm')
-rw-r--r-- | drivers/staging/bcm/PHSModule.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/bcm/PHSModule.c b/drivers/staging/bcm/PHSModule.c index bdc29a5ae4ca..805ecb088a01 100644 --- a/drivers/staging/bcm/PHSModule.c +++ b/drivers/staging/bcm/PHSModule.c @@ -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, |