提交 fae22fce 编写于 作者: P Pavel Hrdina

rpc: remove redundant logic

Introduced by commit <0eaa59dc>.  That comparison already returns
true or false.
Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 9f0ae0b1
...@@ -1090,7 +1090,7 @@ virNetServerClientClose(virNetServerClientPtr client) ...@@ -1090,7 +1090,7 @@ virNetServerClientClose(virNetServerClientPtr client)
bool bool
virNetServerClientIsClosedLocked(virNetServerClientPtr client) virNetServerClientIsClosedLocked(virNetServerClientPtr client)
{ {
return client->sock == NULL ? true : false; return client->sock == NULL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册