commit | 4ac387f516bd3e5356cdb25266e244fa8a062281 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@gmail.com> | Sun Oct 20 18:55:41 2013 +0200 |
committer | Dave Airlie <airlied@redhat.com> | Wed Nov 06 14:53:23 2013 +1000 |
tree | f50c08aa8fdad6ff571711ba5b202ac11b5a58e3 | |
parent | f73aca50b7f6e0f3e04d887f852b9f8b0e108fa7 [diff] |
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 <dh.herrmann@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>