commit | f4aede2e3291896e7cb42755ecc5b6815b6cac97 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@gmail.com> | Wed Jan 29 10:18:02 2014 +0100 |
committer | David Herrmann <dh.herrmann@gmail.com> | Sun Mar 16 12:25:17 2014 +0100 |
tree | 61f56c57664819db8bda55a6480330d302a42624 | |
parent | 45e212d20fdccaf958b194e95a23ad264188c59e [diff] |
drm: skip redundant minor-lookup in open path The drm_open_helper() function is only used internally for drm_open() so we can safely pass in the minor-object directly instead of the minor-id. This way, we avoid the additional minor IDR lookup, which we already do twice in drm_stub_open() and drm_open(). Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>