mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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:695fbc08d8("drm/i915/gvt: replace the gvt_err with gvt_vgpu_err") Signed-off-by: Tina Zhang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> (cherry picked from commit865f03d42e) Signed-off-by: Jani Nikula <[email protected]>
This commit is contained in:
parent
729a0cd45c
commit
9ba2a6261d
1 changed files with 0 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue