aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2014-07-29 10:52:23 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-30 20:14:23 -0400
commitfcaa42c71af297c330abaa6a98ee06b84ab93e29 (patch)
tree48caf4bdc6e72a3539514ef2db0eb6dabf2d8495
parent0144b84e0c3593f5c62d0dbf29d477b6760f2ab5 (diff)
Staging: bcm: Qos.c: Line length / Whitespace cleanup in MatchProtocol()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/bcm/Qos.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/drivers/staging/bcm/Qos.c b/drivers/staging/bcm/Qos.c
index b24ee8ad2b03..891f6906715c 100644
--- a/drivers/staging/bcm/Qos.c
+++ b/drivers/staging/bcm/Qos.c
@@ -158,19 +158,32 @@ static bool MatchTos(struct bcm_classifier_rule *pstClassifierRule,
158* 158*
159* Returns - TRUE(If address matches) else FAIL. 159* Returns - TRUE(If address matches) else FAIL.
160****************************************************************************/ 160****************************************************************************/
161bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol) 161bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,
162 UCHAR ucProtocol)
162{ 163{
163 UCHAR ucLoopIndex = 0; 164 UCHAR ucLoopIndex = 0;
164 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev); 165 struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
165 166
166 if (0 == pstClassifierRule->ucProtocolLength) 167 if (0 == pstClassifierRule->ucProtocolLength)
167 return TRUE; 168 return TRUE;
168 for (ucLoopIndex = 0; ucLoopIndex < pstClassifierRule->ucProtocolLength; ucLoopIndex++) { 169 for (ucLoopIndex = 0;
169 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol:0x%X Classification Protocol:0x%X", ucProtocol, pstClassifierRule->ucProtocol[ucLoopIndex]); 170 ucLoopIndex < pstClassifierRule->ucProtocolLength;
171 ucLoopIndex++) {
172 BCM_DEBUG_PRINT(Adapter,
173 DBG_TYPE_TX,
174 IPV4_DBG,
175 DBG_LVL_ALL,
176 "Protocol:0x%X Classification Protocol:0x%X",
177 ucProtocol,
178 pstClassifierRule->ucProtocol[ucLoopIndex]);
170 if (pstClassifierRule->ucProtocol[ucLoopIndex] == ucProtocol) 179 if (pstClassifierRule->ucProtocol[ucLoopIndex] == ucProtocol)
171 return TRUE; 180 return TRUE;
172 } 181 }
173 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol Not Matched"); 182 BCM_DEBUG_PRINT(Adapter,
183 DBG_TYPE_TX,
184 IPV4_DBG,
185 DBG_LVL_ALL,
186 "Protocol Not Matched");
174 return false; 187 return false;
175} 188}
176 189