mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
rpc: Remove duplicate check from filter function return.
This is a simple removal of a duplicated check of the return of the
filter function. There is a nested conditional checking exactly the same
thing since commit c9ede1cf
removed the (ret > 0) check condition.
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
870282cb43
commit
5255593faa
@ -1288,8 +1288,7 @@ static virNetMessagePtr virNetServerClientDispatchRead(virNetServerClientPtr cli
|
|||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
virNetMessageFree(msg);
|
virNetMessageFree(msg);
|
||||||
msg = NULL;
|
msg = NULL;
|
||||||
if (ret < 0)
|
client->wantClose = true;
|
||||||
client->wantClose = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user