Staging: bcm: PHSModule.c: Simplified nested if statements by linking them with logic...
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 15 Jul 2014 07:43:11 +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 5eec7065ea6e49ff295e21ff82638a4f69d527b1..4074eb8550bd6be080112f484a65b72ead0b59d8 100644 (file)
@@ -990,11 +990,10 @@ static UINT GetClassifierEntry(IN struct bcm_phs_classifier_table *pstClassifier
                        psClassifierRules =
                                &pstClassifierTable->stOldPhsRulesList[i];
 
-               if (psClassifierRules->bUsed) {
-                       if (psClassifierRules->uiClassifierRuleId == uiClsid) {
-                               *ppstClassifierEntry = psClassifierRules;
-                               return i;
-                       }
+               if (psClassifierRules->bUsed &&
+                  (psClassifierRules->uiClassifierRuleId == uiClsid)) {
+                       *ppstClassifierEntry = psClassifierRules;
+                       return i;
                }
        }