Staging: bcm: Qos.c: Line length / Whitespace cleanup in MatchSrcPort()

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:24 +02:00 committed by Greg Kroah-Hartman
parent fcaa42c71a
commit 66fa6530fa

View File

@ -198,7 +198,8 @@ bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,
* *
* Returns - TRUE(If address matches) else FAIL. * Returns - TRUE(If address matches) else FAIL.
***************************************************************************/ ***************************************************************************/
bool MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPort) bool MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule,
USHORT ushSrcPort)
{ {
UCHAR ucLoopIndex = 0; UCHAR ucLoopIndex = 0;
@ -207,12 +208,19 @@ bool MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushSrcPo
if (0 == pstClassifierRule->ucSrcPortRangeLength) if (0 == pstClassifierRule->ucSrcPortRangeLength)
return TRUE; return TRUE;
for (ucLoopIndex = 0; ucLoopIndex < pstClassifierRule->ucSrcPortRangeLength; ucLoopIndex++) { for (ucLoopIndex = 0;
ucLoopIndex < pstClassifierRule->ucSrcPortRangeLength;
ucLoopIndex++) {
if (ushSrcPort <= pstClassifierRule->usSrcPortRangeHi[ucLoopIndex] && if (ushSrcPort <= pstClassifierRule->usSrcPortRangeHi[ucLoopIndex] &&
ushSrcPort >= pstClassifierRule->usSrcPortRangeLo[ucLoopIndex]) ushSrcPort >= pstClassifierRule->usSrcPortRangeLo[ucLoopIndex])
return TRUE; return TRUE;
} }
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Src Port: %x Not Matched ", ushSrcPort); BCM_DEBUG_PRINT(Adapter,
DBG_TYPE_TX,
IPV4_DBG,
DBG_LVL_ALL,
"Src Port: %x Not Matched ",
ushSrcPort);
return false; return false;
} }