]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
KVM: Remove unneeded kvm_dev_open and kvm_dev_release functions.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Aug 2007 00:17:06 +0000 (10:17 +1000)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:22 +0000 (10:18 +0200)
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>
drivers/kvm/kvm_main.c

index 25d76a5a9999877527b91ca6ae64e2ba135f7c43..9de3b1aba20f1c6945126a0920dffb436ef57f61 100644 (file)
@@ -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.
  */
@@ -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);
@@ -2841,8 +2831,6 @@ out:
 }
 
 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,
 };