Staging: bcm: Qos.c: Replaced if-else return with ternary operator
authorMatthias Beyer <mail@beyermatthias.de>
Tue, 29 Jul 2014 14:52:19 +0000 (16:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jul 2014 00:14:22 +0000 (17:14 -0700)
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Qos.c

index 2cc87b5764153abf81d025365f7c73250c8bdc29..9455c25e2341488bb65f1c1644a74fe388339d3d 100644 (file)
@@ -605,10 +605,7 @@ USHORT ClassifyPacket(struct bcm_mini_adapter *Adapter, struct sk_buff *skb)
 
        }
 
-       if (bClassificationSucceed)
-               return usIndex;
-       else
-               return INVALID_QUEUE_INDEX;
+       return (bClassificationSucceed ? usIndex : INVALID_QUEUE_INDEX);
 }
 
 static bool EthCSMatchSrcMACAddress(struct bcm_classifier_rule *pstClassifierRule, PUCHAR Mac)