Staging: bcm: Shortened lines in DeleteClassifierRuleFromSF()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a03420b622
commit
e8a9447780
|
@ -370,7 +370,8 @@ static inline VOID CopyClassifierRuleToSF(struct bcm_mini_adapter *Adapter, stru
|
||||||
/*
|
/*
|
||||||
* @ingroup ctrl_pkt_functions
|
* @ingroup ctrl_pkt_functions
|
||||||
*/
|
*/
|
||||||
static inline VOID DeleteClassifierRuleFromSF(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
static inline VOID DeleteClassifierRuleFromSF(struct bcm_mini_adapter *Adapter,
|
||||||
|
UINT uiSearchRuleIndex, UINT nClassifierIndex)
|
||||||
{
|
{
|
||||||
struct bcm_classifier_rule *pstClassifierEntry = NULL;
|
struct bcm_classifier_rule *pstClassifierEntry = NULL;
|
||||||
B_UINT16 u16PacketClassificationRuleIndex;
|
B_UINT16 u16PacketClassificationRuleIndex;
|
||||||
|
@ -386,15 +387,18 @@ static inline VOID DeleteClassifierRuleFromSF(struct bcm_mini_adapter *Adapter,
|
||||||
if (usVCID == 0)
|
if (usVCID == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
u16PacketClassificationRuleIndex = Adapter->astClassifierTable[nClassifierIndex].uiClassifierRuleIndex;
|
u16PacketClassificationRuleIndex =
|
||||||
|
Adapter->astClassifierTable[nClassifierIndex].uiClassifierRuleIndex;
|
||||||
pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex];
|
pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex];
|
||||||
if (pstClassifierEntry) {
|
if (pstClassifierEntry) {
|
||||||
pstClassifierEntry->bUsed = false;
|
pstClassifierEntry->bUsed = false;
|
||||||
pstClassifierEntry->uiClassifierRuleIndex = 0;
|
pstClassifierEntry->uiClassifierRuleIndex = 0;
|
||||||
memset(pstClassifierEntry, 0, sizeof(struct bcm_classifier_rule));
|
memset(pstClassifierEntry, 0,
|
||||||
|
sizeof(struct bcm_classifier_rule));
|
||||||
|
|
||||||
/* Delete the PHS Rule for this classifier */
|
/* Delete the PHS Rule for this classifier */
|
||||||
PhsDeleteClassifierRule(&Adapter->stBCMPhsContext, usVCID, u16PacketClassificationRuleIndex);
|
PhsDeleteClassifierRule(&Adapter->stBCMPhsContext, usVCID,
|
||||||
|
u16PacketClassificationRuleIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue