mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
KVM: Remove unneeded kvm_dev_open and kvm_dev_release functions.
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>
This commit is contained in:
parent
3dea7ca716
commit
33830b4f5b
1 changed files with 0 additions and 12 deletions
|
@ -302,11 +302,6 @@ static struct kvm *kvm_create_vm(void)
|
||||||
return kvm;
|
return kvm;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int kvm_dev_open(struct inode *inode, struct file *filp)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Free any memory in @free but not in @dont.
|
* 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)
|
static void kvm_destroy_vm(struct kvm *kvm)
|
||||||
{
|
{
|
||||||
spin_lock(&kvm_lock);
|
spin_lock(&kvm_lock);
|
||||||
|
@ -2841,8 +2831,6 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct file_operations kvm_chardev_ops = {
|
static struct file_operations kvm_chardev_ops = {
|
||||||
.open = kvm_dev_open,
|
|
||||||
.release = kvm_dev_release,
|
|
||||||
.unlocked_ioctl = kvm_dev_ioctl,
|
.unlocked_ioctl = kvm_dev_ioctl,
|
||||||
.compat_ioctl = kvm_dev_ioctl,
|
.compat_ioctl = kvm_dev_ioctl,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue