projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8ab70b
)
Staging: bcm: Qos.c: Replaced if-else return with ternary operator
author
Matthias Beyer
<mail@beyermatthias.de>
Tue, 29 Jul 2014 14:52:19 +0000
(16:52 +0200)
committer
Greg 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
patch
|
blob
|
history
diff --git
a/drivers/staging/bcm/Qos.c
b/drivers/staging/bcm/Qos.c
index
2cc87b5
..
9455c25
100644
(file)
--- 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)