Skip to content

Commit

Permalink
KVM: Remove unneeded kvm_dev_open and kvm_dev_release functions.
Browse files Browse the repository at this point in the history
Devices don't need open or release functions.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
  • Loading branch information
Rusty Russell authored and Avi Kivity committed Oct 13, 2007
1 parent 3dea7ca commit 33830b4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ static struct kvm *kvm_create_vm(void)
return kvm;
}

static int kvm_dev_open(struct inode *inode, struct file *filp)
{
return 0;
}

/*
* Free any memory in @free but not in @dont.
*/
Expand Down Expand Up @@ -376,11 +371,6 @@ static void kvm_free_vcpus(struct kvm *kvm)

}

static int kvm_dev_release(struct inode *inode, struct file *filp)
{
return 0;
}

static void kvm_destroy_vm(struct kvm *kvm)
{
spin_lock(&kvm_lock);
Expand Down Expand Up @@ -2841,8 +2831,6 @@ static long kvm_dev_ioctl(struct file *filp,
}

static struct file_operations kvm_chardev_ops = {
.open = kvm_dev_open,
.release = kvm_dev_release,
.unlocked_ioctl = kvm_dev_ioctl,
.compat_ioctl = kvm_dev_ioctl,
};
Expand Down

0 comments on commit 33830b4

Please sign in to comment.