diff options
author | Dave Airlie <airlied@linux.ie> | 2007-03-19 08:32:25 +1100 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-03-19 08:32:25 +1100 |
commit | 483f6a113d21b90821d091c4dae413703f9907e5 (patch) | |
tree | 16df8efbdbfab6bb6f08b5893d334a80724e2553 /linux-core/drm_proc.c | |
parent | 2d7ecb84221278a9b6a0328fb2f9a63ea6b8e2e2 (diff) |
use ARRAY_SIZE
Diffstat (limited to 'linux-core/drm_proc.c')
-rw-r--r-- | linux-core/drm_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index 1c2c17fed..d6da86b25 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -75,7 +75,7 @@ static struct drm_proc_list { #endif }; -#define DRM_PROC_ENTRIES (sizeof(drm_proc_list)/sizeof(drm_proc_list[0])) +#define DRM_PROC_ENTRIES ARRAY_SIZE(drm_proc_list) /** * Initialize the DRI proc filesystem for a device. |