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

Staging: bcm: PHSModule.c: Simplified nested if statements by linking them...

Staging: bcm: PHSModule.c: Simplified nested if statements by linking them with logical AND in GetServiceFlowEntry()
Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cf423564
...@@ -963,13 +963,11 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable, ...@@ -963,13 +963,11 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable,
for (i = 0; i < MAX_SERVICEFLOWS; i++) { for (i = 0; i < MAX_SERVICEFLOWS; i++) {
curr_sf_list = &psServiceFlowTable->stSFList[i]; curr_sf_list = &psServiceFlowTable->stSFList[i];
if (curr_sf_list->bUsed) { if (curr_sf_list->bUsed && (curr_sf_list->uiVcid == uiVcid)) {
if (curr_sf_list->uiVcid == uiVcid) {
*ppstServiceFlowEntry = curr_sf_list; *ppstServiceFlowEntry = curr_sf_list;
return i; return i;
} }
} }
}
*ppstServiceFlowEntry = NULL; *ppstServiceFlowEntry = NULL;
return PHS_INVALID_TABLE_INDEX; return PHS_INVALID_TABLE_INDEX;
......
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