mirror of https://gitee.com/openkylin/libvirt.git
events: move NULL check to EventStateQueueRemote
Remove NULL check around call to virObjectEventStateQueueRemote in remote_driver.c. Signed-off-by: Anya Harter <aharter@redhat.com>
This commit is contained in:
parent
031eb8f6dc
commit
aad3a0b5f8
|
@ -744,6 +744,9 @@ virObjectEventStateQueueRemote(virObjectEventStatePtr state,
|
|||
virObjectEventPtr event,
|
||||
int remoteID)
|
||||
{
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
if (state->timer < 0) {
|
||||
virObjectUnref(event);
|
||||
return;
|
||||
|
@ -776,9 +779,6 @@ void
|
|||
virObjectEventStateQueue(virObjectEventStatePtr state,
|
||||
virObjectEventPtr event)
|
||||
{
|
||||
if (!event)
|
||||
return;
|
||||
|
||||
virObjectEventStateQueueRemote(state, event, -1);
|
||||
}
|
||||
|
||||
|
|
|
@ -4435,8 +4435,7 @@ static void
|
|||
remoteEventQueue(struct private_data *priv, virObjectEventPtr event,
|
||||
int remoteID)
|
||||
{
|
||||
if (event)
|
||||
virObjectEventStateQueueRemote(priv->eventState, event, remoteID);
|
||||
virObjectEventStateQueueRemote(priv->eventState, event, remoteID);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue