Message ID | 1596523270-5492-2-git-send-email-jasowang@redhat.com |
---|---|
State | New |
Headers | show |
Series | [PULL,1/2] colo-compare: Remove superfluous NULL-pointer checks for s->iothread | expand |
diff --git a/net/colo-compare.c b/net/colo-compare.c index cc15f23..2c20de1 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -1442,9 +1442,7 @@ static void colo_compare_finalize(Object *obj) qemu_chr_fe_deinit(&s->chr_notify_dev, false); } - if (s->iothread) { - colo_compare_timer_del(s); - } + colo_compare_timer_del(s); qemu_bh_delete(s->event_bh); @@ -1470,9 +1468,7 @@ static void colo_compare_finalize(Object *obj) g_hash_table_destroy(s->connection_track_table); } - if (s->iothread) { - object_unref(OBJECT(s->iothread)); - } + object_unref(OBJECT(s->iothread)); g_free(s->pri_indev); g_free(s->sec_indev);