diff options
author | Tina Zhang <tina.zhang@intel.com> | 2017-03-24 01:56:54 -0400 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2017-03-30 01:32:12 -0400 |
commit | 865f03d42ed0c90c9faf3301775176834ba13eba (patch) | |
tree | 620d6e20b89ac69e824858d2ebc647c5ae825c81 | |
parent | bf39ec335eb8cc51b4e1c9303ef92b380d204bb1 (diff) |
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>
-rw-r--r-- | drivers/gpu/drm/i915/gvt/kvmgt.c | 7 |
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 c7e7c9377cef..65bcf6096e5e 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c | |||
@@ -1371,13 +1371,6 @@ static int kvmgt_guest_init(struct mdev_device *mdev) | |||
1371 | 1371 | ||
1372 | static bool kvmgt_guest_exit(struct kvmgt_guest_info *info) | 1372 | static bool kvmgt_guest_exit(struct kvmgt_guest_info *info) |
1373 | { | 1373 | { |
1374 | struct intel_vgpu *vgpu = info->vgpu; | ||
1375 | |||
1376 | if (!info) { | ||
1377 | gvt_vgpu_err("kvmgt_guest_info invalid\n"); | ||
1378 | return false; | ||
1379 | } | ||
1380 | |||
1381 | kvm_page_track_unregister_notifier(info->kvm, &info->track_node); | 1374 | kvm_page_track_unregister_notifier(info->kvm, &info->track_node); |
1382 | kvmgt_protect_table_destroy(info); | 1375 | kvmgt_protect_table_destroy(info); |
1383 | gvt_cache_destroy(info->vgpu); | 1376 | gvt_cache_destroy(info->vgpu); |