Skip to content

Commit

Permalink
drm/i915/gvt: remove the redundant info NULL check
Browse files Browse the repository at this point in the history
The variable info is never NULL, which is checked by the caller. This
patch removes the redundant info NULL check logic.

Fixes: 695fbc0 ("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>
  • Loading branch information
Tina Zhang authored and Zhenyu Wang committed Mar 30, 2017
1 parent bf39ec3 commit 865f03d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/gpu/drm/i915/gvt/kvmgt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,13 +1371,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);
kvmgt_protect_table_destroy(info);
gvt_cache_destroy(info->vgpu);
Expand Down

0 comments on commit 865f03d

Please sign in to comment.