diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-31 20:17:06 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:22 -0400 |
commit | 33830b4f5bdf2bc21d0c10d38beffdce8edcded7 (patch) | |
tree | e83e66a0e86988ad22cbebd75d41b82134ecb78b /drivers/kvm/kvm_main.c | |
parent | 3dea7ca7160f80dd6d31c0bbeb2d871e51b567b6 (diff) |
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>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 25d76a5a9999..9de3b1aba20f 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -302,11 +302,6 @@ static struct kvm *kvm_create_vm(void) | |||
302 | return kvm; | 302 | return kvm; |
303 | } | 303 | } |
304 | 304 | ||
305 | static int kvm_dev_open(struct inode *inode, struct file *filp) | ||
306 | { | ||
307 | return 0; | ||
308 | } | ||
309 | |||
310 | /* | 305 | /* |
311 | * Free any memory in @free but not in @dont. | 306 | * Free any memory in @free but not in @dont. |
312 | */ | 307 | */ |
@@ -376,11 +371,6 @@ static void kvm_free_vcpus(struct kvm *kvm) | |||
376 | 371 | ||
377 | } | 372 | } |
378 | 373 | ||
379 | static int kvm_dev_release(struct inode *inode, struct file *filp) | ||
380 | { | ||
381 | return 0; | ||
382 | } | ||
383 | |||
384 | static void kvm_destroy_vm(struct kvm *kvm) | 374 | static void kvm_destroy_vm(struct kvm *kvm) |
385 | { | 375 | { |
386 | spin_lock(&kvm_lock); | 376 | spin_lock(&kvm_lock); |
@@ -2841,8 +2831,6 @@ out: | |||
2841 | } | 2831 | } |
2842 | 2832 | ||
2843 | static struct file_operations kvm_chardev_ops = { | 2833 | static struct file_operations kvm_chardev_ops = { |
2844 | .open = kvm_dev_open, | ||
2845 | .release = kvm_dev_release, | ||
2846 | .unlocked_ioctl = kvm_dev_ioctl, | 2834 | .unlocked_ioctl = kvm_dev_ioctl, |
2847 | .compat_ioctl = kvm_dev_ioctl, | 2835 | .compat_ioctl = kvm_dev_ioctl, |
2848 | }; | 2836 | }; |