mirror of https://gitee.com/openkylin/linux.git
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:
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)
|
||||
|
|
Loading…
Reference in New Issue