Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 161c4810 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie
Browse files

drm: fix end of loop test



"agpmem" is never NULL here because it is the list cursor of a
list_for_each_entry() list.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6f50eae7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ static int drm_do_vm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
				break;
		}

		if (!agpmem)
		if (&agpmem->head == &dev->agp->memory)
			goto vm_fault_error;

		/*