Skip to content

Commit

Permalink
drm: Use ARRAY_SIZE macro when appropriate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ahmed S. Darwish authored and Dave Airlie committed Mar 11, 2007
1 parent f54d1e4 commit 8311d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/drm/drm_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8311d57

Please sign in to comment.