On Mon, May 04, 2015 at 04:05:14PM +0200, David Herrmann wrote: > 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 at gmail.com> Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk> -Chris
-- Chris Wilson, Intel Open Source Technology Centre