Commit 1eaf122c authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Dave Jones

[AGPGART] intel-agp: Use ARRAY_SIZE macro when appropriate

use ARRAY_SIZE macro already defined in kernel.h
Signed-off-by: default avatarAhmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent bf1e5989
......@@ -5,6 +5,7 @@
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/pagemap.h>
#include <linux/agp_backend.h>
#include "agp.h"
......@@ -846,7 +847,7 @@ static int intel_i915_remove_entries(struct agp_memory *mem,off_t pg_start,
*/
static int intel_i9xx_fetch_size(void)
{
int num_sizes = sizeof(intel_i830_sizes) / sizeof(*intel_i830_sizes);
int num_sizes = ARRAY_SIZE(intel_i830_sizes);
int aper_size; /* size in megabytes */
int i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment