OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7ecb8
)
use ARRAY_SIZE
author
Dave Airlie
<airlied@linux.ie>
Sun, 18 Mar 2007 21:32:25 +0000
(08:32 +1100)
committer
Dave Airlie
<airlied@linux.ie>
Sun, 18 Mar 2007 21:32:25 +0000
(08:32 +1100)
linux-core/drm_proc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_proc.c
b/linux-core/drm_proc.c
index
1c2c17f
..
d6da86b
100644
(file)
--- a/
linux-core/drm_proc.c
+++ b/
linux-core/drm_proc.c
@@
-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.