]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: simplify context_idr_cleanup
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Jun 2012 18:27:39 +0000 (20:27 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Jun 2012 09:16:48 +0000 (11:16 +0200)
commit24d6e191aa607565a60b6659b03f64f26d241e13
tree11152b2746b8735d86b84acf319c246d68392fc8
parentd03ab92e3271b786d8b4645586957b3733373ebe
drm/i915: simplify context_idr_cleanup

The idr code already passes us the pointer associated with that id, so
no need to look it up again. Also, we'll kill the idr right away, so
there's no issue with leaving these dangling pointers behind - the
current code does the same.

v2: Also drop the file argument, spotted by Ben Widawsky.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c