drivers/gpu/drm/drm_buffer.c: remove unnecessary null test before kfree
authorFabian Frederick <fabf@skynet.be>
Sat, 28 Jun 2014 13:20:43 +0000 (15:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Jul 2014 13:39:27 +0000 (15:39 +0200)
commit74f20788a7637f03bb877a178ef2c8f34a722c26
tree0c2e8decb3263551dd86085d79f3012630c562ee
parent2aa9d2bc8cc3ab32ea0d15ec9005f25b1af3465a
drivers/gpu/drm/drm_buffer.c: remove unnecessary null test before kfree

This patch removes special case of last element and loops from idx to 0.

Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_buffer.c