summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorTina Zhang <tina.zhang@intel.com>2017-03-24 01:56:54 -0400
committerJani Nikula <jani.nikula@intel.com>2017-03-31 13:39:57 +0300
commit9ba2a6261de49588714a25f49db80bbe961b870a (patch)
tree7f2e89c0d512123ee4f858d7c8bed5c5df895cc1 /drivers/gpu
parent729a0cd45c886a8d1ae0b3063b20d525fc729523 (diff)
downloadblackbird-op-linux-9ba2a6261de49588714a25f49db80bbe961b870a.tar.gz
blackbird-op-linux-9ba2a6261de49588714a25f49db80bbe961b870a.zip
drm/i915/gvt: remove the redundant info NULL check
The variable info is never NULL, which is checked by the caller. This patch removes the redundant info NULL check logic. Fixes: 695fbc08d80f ("drm/i915/gvt: replace the gvt_err with gvt_vgpu_err") Signed-off-by: Tina Zhang <tina.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> (cherry picked from commit 865f03d42ed0c90c9faf3301775176834ba13eba) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/gvt/kvmgt.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c
index d641214578a7..2d92119b488c 100644
--- a/drivers/gpu/drm/i915/gvt/kvmgt.c
+++ b/drivers/gpu/drm/i915/gvt/kvmgt.c
@@ -1340,13 +1340,6 @@ static int kvmgt_guest_init(struct mdev_device *mdev)
static bool kvmgt_guest_exit(struct kvmgt_guest_info *info)
{
- struct intel_vgpu *vgpu = info->vgpu;
-
- if (!info) {
- gvt_vgpu_err("kvmgt_guest_info invalid\n");
- return false;
- }
-
kvm_page_track_unregister_notifier(info->kvm, &info->track_node);
kvm_put_kvm(info->kvm);
kvmgt_protect_table_destroy(info);
OpenPOWER on IntegriCloud