hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/char/agp/frontend.c
....@@ -39,7 +39,6 @@
3939 #include <linux/fs.h>
4040 #include <linux/sched.h>
4141 #include <linux/uaccess.h>
42
-#include <asm/pgtable.h>
4342 #include "agp.h"
4443
4544 struct agp_front_data agp_fe;
....@@ -102,14 +101,13 @@
102101 int size, pgprot_t page_prot)
103102 {
104103 struct agp_segment_priv *seg;
105
- int num_segments, i;
104
+ int i;
106105 off_t pg_start;
107106 size_t pg_count;
108107
109108 pg_start = offset / 4096;
110109 pg_count = size / 4096;
111110 seg = *(client->segments);
112
- num_segments = client->num_segments;
113111
114112 for (i = 0; i < client->num_segments; i++) {
115113 if ((seg[i].pg_start == pg_start) &&