projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d6ceb8
)
drm/i915/gvt/kvmgt: remove some dead code
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 7 Feb 2017 14:53:07 +0000
(17:53 +0300)
committer
Zhenyu Wang
<zhenyuw@linux.intel.com>
Wed, 8 Feb 2017 05:11:22 +0000
(13:11 +0800)
"caps.buf" is always NULL here and "caps.size" is always zero. The code
is a no-op and can be removed.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/kvmgt.c
b/drivers/gpu/drm/i915/gvt/kvmgt.c
index 080ca77abd22b41f3a561bb8b024c4616b064759..b49a01d85dde84fbaf82638baaf6263cb53ca104 100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/
drivers/gpu/drm/i915/gvt/kvmgt.c
@@
-965,11
+965,6
@@
static long intel_vgpu_ioctl(struct mdev_device *mdev, unsigned int cmd,
sparse->areas[0].offset =
PAGE_ALIGN(vgpu_aperture_offset(vgpu));
sparse->areas[0].size = vgpu_aperture_sz(vgpu);
- if (!caps.buf) {
- kfree(caps.buf);
- caps.buf = NULL;
- caps.size = 0;
- }
break;
case VFIO_PCI_BAR3_REGION_INDEX ... VFIO_PCI_BAR5_REGION_INDEX: