mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:57:24 +00:00
Driver: fortstat: Simplify fort_flow_context_remove_id()
This commit is contained in:
parent
812e2d32e2
commit
bacb042267
@ -250,14 +250,10 @@ static BOOL fort_flow_context_remove_id(
|
||||
fort_flow_context_transport_remove(
|
||||
stat, flow_id, isIPv6, &transport_in_status, &transport_out_status);
|
||||
|
||||
if (stream_status == STATUS_PENDING || transport_in_status == STATUS_PENDING
|
||||
|| transport_out_status == STATUS_PENDING) {
|
||||
*pending = TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
*pending = (stream_status == STATUS_PENDING || transport_in_status == STATUS_PENDING
|
||||
|| transport_out_status == STATUS_PENDING);
|
||||
|
||||
return NT_SUCCESS(stream_status) && NT_SUCCESS(transport_in_status)
|
||||
&& NT_SUCCESS(transport_out_status);
|
||||
return stream_status == 0 && transport_in_status == 0 && transport_out_status == 0;
|
||||
}
|
||||
|
||||
static void fort_flow_context_remove(PVOID stat_arg, PVOID flow_node)
|
||||
|
Loading…
Reference in New Issue
Block a user