drivers/gpu/drm/drm_memory.c: fix check for end of loop
Subsystems (2)
PATCH 5/5 drivers/gpu/drm/drm_memory.c: fix check for end of loop
From: Dan Carpenter <[email protected]>
"agpmem" is never NULL here.
Signed-off-by Dan Carpenter <[email protected]>
Cc David Airlie <[email protected]>
Cc Eric Anholt <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/gpu/drm/drm_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_memory.c renamed from drivers/gpu/drm/drm_memory.c~drivers-gpu-drm-drm_memoryc-fix-check-for-end-of-loop +1 -1
@@ -77,7 +77,7 @@ static void *agp_remap(unsigned long off && (agpmem->bound + (agpmem->pages <<PAGE_SHIFT )) >= (offset + size)) break; -if (!agpmem) +if (&agpmem->head == &dev->agp->memory)return NULL ;/*
_
------------------------------------------------------------------------------
--