mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 14:30:22 +01:00
use ARRAY_SIZE
This commit is contained in:
parent
2d7ecb8422
commit
483f6a113d
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue