[PATCH] drm/i915: simplify context_idr_cleanup

2012-06-19 Thread Daniel Vetter
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. Signed-Off-by: Daniel Vetter ---

[PATCH] drm/i915: simplify context_idr_cleanup

2012-06-19 Thread Ben Widawsky
On Tue, 19 Jun 2012 18:56:15 +0200 Daniel Vetter wrote: > 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

[PATCH] drm/i915: simplify context_idr_cleanup

2012-06-19 Thread Daniel Vetter
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. Signed-Off-by: Daniel Vetter daniel.vet...@ffwll.ch ---

Re: [PATCH] drm/i915: simplify context_idr_cleanup

2012-06-19 Thread Ben Widawsky
On Tue, 19 Jun 2012 18:56:15 +0200 Daniel Vetter daniel.vet...@ffwll.ch wrote: 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