Skip to content

Commit

Permalink
[AGPGART] intel-agp: 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: Dave Jones <davej@redhat.com>
  • Loading branch information
Ahmed S. Darwish authored and Dave Jones committed Feb 6, 2007
1 parent bf1e598 commit 1eaf122
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 1eaf122

Please sign in to comment.