diff options
author | 2014-02-24 15:35:09 +0100 | |
---|---|---|
committer | 2014-03-16 12:25:19 +0100 | |
commit | 7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1 (patch) | |
tree | 9e4b0285901252512e6239a5ceac72aff4a89258 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm: coding-style fixes in minor handling (diff) | |
download | linux-dev-7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1.tar.xz linux-dev-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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions