mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 09:51:21 -04:00
Staging: bcm: PHSModule.c: Replaced member accessing with variable in GetServiceFlowEntry()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
14d8e91596
commit
cf423564fa
@@ -959,12 +959,13 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable,
|
||||
struct bcm_phs_entry **ppstServiceFlowEntry)
|
||||
{
|
||||
int i;
|
||||
struct bcm_phs_entry *curr_sf_list;
|
||||
|
||||
for (i = 0; i < MAX_SERVICEFLOWS; i++) {
|
||||
if (psServiceFlowTable->stSFList[i].bUsed) {
|
||||
if (psServiceFlowTable->stSFList[i].uiVcid == uiVcid) {
|
||||
*ppstServiceFlowEntry =
|
||||
&psServiceFlowTable->stSFList[i];
|
||||
curr_sf_list = &psServiceFlowTable->stSFList[i];
|
||||
if (curr_sf_list->bUsed) {
|
||||
if (curr_sf_list->uiVcid == uiVcid) {
|
||||
*ppstServiceFlowEntry = curr_sf_list;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user