diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2014-07-29 14:52:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-31 00:14:22 (GMT) |
commit | 1ccbecddbcc3aa44e070221b64316bed14c93025 (patch) | |
tree | d1dabe36b5e99f6cc4b764a6fbdf017208f7a01f /drivers | |
parent | b8ab70b046a9baf02f5e02412c265578b1b24953 (diff) | |
download | linux-1ccbecddbcc3aa44e070221b64316bed14c93025.tar.xz |
Staging: bcm: Qos.c: Replaced if-else return with ternary operator
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/bcm/Qos.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/bcm/Qos.c b/drivers/staging/bcm/Qos.c index 2cc87b5..9455c25 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) |