From: David Herrmann Date: Mon, 24 Feb 2014 14:35:09 +0000 (+0100) Subject: drm: inline drm_minor_get_id() X-Git-Tag: v3.15-rc1~51^2~56^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d86cf1a4fc0c0bdb6947185c6fe71301dfea7b1;p=pandora-kernel.git 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 --- Reading git-diff-tree failed