mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 11:43:40 +00:00
Staging: bcm: PHSModule.c: Simplified nested if statements by linking them with logical AND 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:
parent
cf423564fa
commit
c842dd2ddb
@ -963,11 +963,9 @@ UINT GetServiceFlowEntry(IN struct bcm_phs_table *psServiceFlowTable,
|
||||
|
||||
for (i = 0; i < MAX_SERVICEFLOWS; i++) {
|
||||
curr_sf_list = &psServiceFlowTable->stSFList[i];
|
||||
if (curr_sf_list->bUsed) {
|
||||
if (curr_sf_list->uiVcid == uiVcid) {
|
||||
*ppstServiceFlowEntry = curr_sf_list;
|
||||
return i;
|
||||
}
|
||||
if (curr_sf_list->bUsed && (curr_sf_list->uiVcid == uiVcid)) {
|
||||
*ppstServiceFlowEntry = curr_sf_list;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user