dect
/
linux-2.6
Archived
13
0
Fork 0

drm: Use ARRAY_SIZE macro when appropriate

Use ARRAY_SIZE macro already defined in kernel.h

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
This commit is contained in:
Ahmed S. Darwish 2007-02-09 10:30:10 +11:00 committed by Dave Airlie
parent f54d1e40b2
commit 8311d570bc
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,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.