]> err.no Git - linux-2.6/commitdiff
drm: Use ARRAY_SIZE macro when appropriate
authorAhmed S. Darwish <darwish.07@gmail.com>
Thu, 8 Feb 2007 23:30:10 +0000 (10:30 +1100)
committerDave Airlie <airlied@linux.ie>
Sun, 11 Mar 2007 01:07:16 +0000 (12:07 +1100)
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>
drivers/char/drm/drm_proc.c

index 7fd0da712142cdc78d9e96450e026e8550373404..b204498d1a2887ae58579538c89c89757d4fb539 100644 (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.