use ARRAY_SIZE

main
Dave Airlie 2007-03-19 08:32:25 +11:00
parent 2d7ecb8422
commit 483f6a113d
1 changed files with 1 additions and 1 deletions

View File

@ -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.