Commit c4396e74 authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: Shortened code by using variable

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3709f7a
...@@ -1881,19 +1881,22 @@ VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter, PUINT puiBuffer ...@@ -1881,19 +1881,22 @@ VOID OverrideServiceFlowParams(struct bcm_mini_adapter *Adapter, PUINT puiBuffer
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Going to Delete SF"); BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "Going to Delete SF");
deleteSFBySfid(Adapter, uiSearchRuleIndex); deleteSFBySfid(Adapter, uiSearchRuleIndex);
} else { } else {
Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value = ntohs(pHostInfo->VCID); struct bcm_packet_info *packinfo =
Adapter->PackInfo[uiSearchRuleIndex].usCID = ntohs(pHostInfo->newCID); &Adapter->PackInfo[uiSearchRuleIndex];
Adapter->PackInfo[uiSearchRuleIndex].bActive = false;
packinfo->usVCID_Value = ntohs(pHostInfo->VCID);
packinfo->usCID = ntohs(pHostInfo->newCID);
packinfo->bActive = false;
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "pHostInfo->QoSParamSet: 0x%x\n", pHostInfo->QoSParamSet); BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, CONN_MSG, DBG_LVL_ALL, "pHostInfo->QoSParamSet: 0x%x\n", pHostInfo->QoSParamSet);
if (pHostInfo->QoSParamSet & 0x1) if (pHostInfo->QoSParamSet & 0x1)
Adapter->PackInfo[uiSearchRuleIndex].bAuthorizedSet = TRUE; packinfo->bAuthorizedSet = TRUE;
if (pHostInfo->QoSParamSet & 0x2) if (pHostInfo->QoSParamSet & 0x2)
Adapter->PackInfo[uiSearchRuleIndex].bAdmittedSet = TRUE; packinfo->bAdmittedSet = TRUE;
if (pHostInfo->QoSParamSet & 0x4) { if (pHostInfo->QoSParamSet & 0x4) {
Adapter->PackInfo[uiSearchRuleIndex].bActiveSet = TRUE; packinfo->bActiveSet = TRUE;
Adapter->PackInfo[uiSearchRuleIndex].bActive = TRUE; packinfo->bActive = TRUE;
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment