mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
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>
This commit is contained in:
parent
1abbc43761
commit
7d86cf1a4f
1 changed files with 6 additions and 21 deletions
Loading…
Add table
Add a link
Reference in a new issue