From: David Herrmann Date: Sun, 20 Oct 2013 16:55:41 +0000 (+0200) Subject: drm: simplify drm_put_minor() X-Git-Tag: v3.13-rc1~76^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac387f516bd3e5356cdb25266e244fa8a062281;p=pandora-kernel.git drm: simplify drm_put_minor() Allow passing NULL as minor to simplify DRM destruction paths. Also remove the double-pointer reset as it is no longer needed. drm_put_minor() is only called when the underlying object is destroyed. Hence, resetting minors to NULL is not necessary. As drm_put_minor() is no longer used by other DRM files, we can make it static, too. Signed-off-by: David Herrmann Signed-off-by: Dave Airlie --- Reading git-diff-tree failed