drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Mar 2015 13:52:00 +0000 (15:52 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Mar 2015 15:08:52 +0000 (16:08 +0100)
commit7ef5f82b100716b23de7d2da6ff602b0842e5804
treeba336619b6480f573e1e3f7312806c35363e4bed
parent53615af7a27400d252307093ce49768ccf6442a9
drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code

Use the same logic when checking for valid ioctl range in
drm_ioctl_flags() that is used in drm_ioctl() to avoid
confusion.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_ioctl.c