KVM: do not store wqh in irqfd
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 13 Jan 2010 17:12:39 +0000 (19:12 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:10 +0000 (12:36 -0300)
wqh is unused, so we do not need to store it in irqfd anymore

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/eventfd.c

index 486c604365d9e430ec2908689826d99302046e0f..7016319b1ec0590513ba1886ede37982c39e71b4 100644 (file)
@@ -47,7 +47,6 @@ struct _irqfd {
        int                       gsi;
        struct list_head          list;
        poll_table                pt;
-       wait_queue_head_t        *wqh;
        wait_queue_t              wait;
        struct work_struct        inject;
        struct work_struct        shutdown;
@@ -159,8 +158,6 @@ irqfd_ptable_queue_proc(struct file *file, wait_queue_head_t *wqh,
                        poll_table *pt)
 {
        struct _irqfd *irqfd = container_of(pt, struct _irqfd, pt);
-
-       irqfd->wqh = wqh;
        add_wait_queue(wqh, &irqfd->wait);
 }