提交 c842dd2d 编写于 作者: M Matthias Beyer 提交者: 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: NMatthias Beyer <mail@beyermatthias.de>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 cf423564
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册