diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-02-24 15:35:09 +0100 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-03-16 12:25:19 +0100 |
commit | 7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1 (patch) | |
tree | 9e4b0285901252512e6239a5ceac72aff4a89258 /drivers/gpu/drm/drm_fops.c | |
parent | 1abbc43761793938fba9ae745e01d5b4730a9914 (diff) | |
download | talos-op-linux-7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1.tar.gz talos-op-linux-7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1.zip |
drm: inline drm_minor_get_id()
We can significantly simplify this helper by using plain multiplication.
Note that we converted the minor-type to an enum earlier so this didn't
work before.
We also fix a minor range-bug here: the limit argument of idr_alloc() is
*exclusive*, not inclusive, so we should use 64 instead of 63 as offset.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
0 files changed, 0 insertions, 0 deletions