hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/char/agp/isoch.c
....@@ -84,7 +84,6 @@
8484 unsigned int cdev = 0;
8585 u32 mnistat, tnistat, tstatus, mcmd;
8686 u16 tnicmd, mnicmd;
87
- u8 mcapndx;
8887 u32 tot_bw = 0, tot_n = 0, tot_rq = 0, y_max, rq_isoch, rq_async;
8988 u32 step, rem, rem_isoch, rem_async;
9089 int ret = 0;
....@@ -137,8 +136,6 @@
137136 list_for_each(pos, head) {
138137 cur = list_entry(pos, struct agp_3_5_dev, list);
139138 dev = cur->dev;
140
-
141
- mcapndx = cur->capndx;
142139
143140 pci_read_config_dword(dev, cur->capndx+AGPNISTAT, &mnistat);
144141
....@@ -251,8 +248,6 @@
251248 cur = master[cdev].dev;
252249 dev = cur->dev;
253250
254
- mcapndx = cur->capndx;
255
-
256251 master[cdev].rq += (cdev == ndevs - 1)
257252 ? (rem_async + rem_isoch) : step;
258253
....@@ -319,7 +314,7 @@
319314 {
320315 struct pci_dev *td = bridge->dev, *dev = NULL;
321316 u8 mcapndx;
322
- u32 isoch, arqsz;
317
+ u32 isoch;
323318 u32 tstatus, mstatus, ncapid;
324319 u32 mmajor;
325320 u16 mpstat;
....@@ -333,8 +328,6 @@
333328 isoch = (tstatus >> 17) & 0x1;
334329 if (isoch == 0) /* isoch xfers not available, bail out. */
335330 return -ENODEV;
336
-
337
- arqsz = (tstatus >> 13) & 0x7;
338331
339332 /*
340333 * Allocate a head for our AGP 3.5 device list