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:
Matthias Beyer 2014-07-29 16:52:19 +02:00 committed by Greg Kroah-Hartman
parent b8ab70b046
commit 1ccbecddbc
1 changed files with 1 additions and 4 deletions

View File

@ -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)