mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 11:01:06 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b8ab70b046
commit
1ccbecddbc
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user