drm_mm: extract check_free_mm_node
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 2 Jul 2010 14:02:15 +0000 (15:02 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Jul 2010 02:28:35 +0000 (12:28 +1000)
commit7a6b2896f261894dde287d3faefa4b432cddca53
tree3d3cef52a85a26f59d23a40e7317cdd2585126d0
parentd1024ce91ff4c2c4ccbf692d204c71cbf215157a
drm_mm: extract check_free_mm_node

There are already two copies of this logic. And the new scanning
stuff will add some more. So extract it into a small helper
function.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Thomas Hellstrom <thellstrom@vmwgfx.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_mm.c