From: Matthias Beyer Date: Tue, 29 Jul 2014 14:52:19 +0000 (+0200) Subject: Staging: bcm: Qos.c: Replaced if-else return with ternary operator X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ccbecddbcc3aa44e070221b64316bed14c93025;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Staging: bcm: Qos.c: Replaced if-else return with ternary operator Signed-off-by: Matthias Beyer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/bcm/Qos.c b/drivers/staging/bcm/Qos.c index 2cc87b576415..9455c25e2341 100644 --- a/drivers/staging/bcm/Qos.c +++ b/drivers/staging/bcm/Qos.c @@ -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)