]> git.baikalelectronics.ru Git - kernel.git/commit
drm: simplify master cleanup
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 May 2015 14:05:14 +0000 (16:05 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 5 May 2015 07:46:38 +0000 (09:46 +0200)
commitd48e127d149bd54f36bbe56fb431212881643f15
treeb6df3147e68912458fc5bdbacdcdedb2f110c445
parentdf4fc7863a2fe943911224721e9bdbe9a978b100
drm: simplify master cleanup

In drm_master_destroy() we _free_ the master object. There is no reason to
hold any locks while dropping its static members, nor do we have to reset
it to 0.

Furthermore, kfree() already does NULL checks, so call it directly on
master->unique and drop the redundant reset-code.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_drv.c