diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-06-09 15:39:49 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-06-10 01:36:17 +0200 |
commit | f95aeb17f57c4c98b7f33627e5f51353fd094a93 (patch) | |
tree | 4c821c2597989284072e77f9be08beb03fb4c4f3 /drivers/gpu/drm/radeon/radeon_ioc32.c | |
parent | drm: Remove spurious ';' (diff) | |
download | linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.tar.xz linux-f95aeb17f57c4c98b7f33627e5f51353fd094a93.zip |
drm: Remove DRM_ARRAY_SIZE() for ARRAY_SIZE()
I cannot see a need to provide a DRM_ version of ARRAY_SIZE(), only used
in a few places. I suspect its usage has been spread by copy & paste
rather than anything else.
Let's just remove it for plain ARRAY_SIZE().
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ioc32.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ioc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ioc32.c b/drivers/gpu/drm/radeon/radeon_ioc32.c index bdb0f93e73bc..0b98ea134579 100644 --- a/drivers/gpu/drm/radeon/radeon_ioc32.c +++ b/drivers/gpu/drm/radeon/radeon_ioc32.c @@ -399,7 +399,7 @@ long radeon_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) if (nr < DRM_COMMAND_BASE) return drm_compat_ioctl(filp, cmd, arg); - if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(radeon_compat_ioctls)) + if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(radeon_compat_ioctls)) fn = radeon_compat_ioctls[nr - DRM_COMMAND_BASE]; if (fn != NULL) |