Skip to content

Commit 2fec966

Browse files
yeyunfeng-devairlied
authored andcommitted
agp: remove unused variable mcapndx
This patch fix the following warning: drivers/char/agp/isoch.c: In function ‘agp_3_5_isochronous_node_enable’: drivers/char/agp/isoch.c:87:5: warning: variable ‘mcapndx’ set but not used [-Wunused-but-set-variable] u8 mcapndx; ^~~~~~~ Signed-off-by: Yunfeng Ye <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent 866bd5e commit 2fec966

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/char/agp/isoch.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ static int agp_3_5_isochronous_node_enable(struct agp_bridge_data *bridge,
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;
@@ -138,8 +137,6 @@ static int agp_3_5_isochronous_node_enable(struct agp_bridge_data *bridge,
138137
cur = list_entry(pos, struct agp_3_5_dev, list);
139138
dev = cur->dev;
140139

141-
mcapndx = cur->capndx;
142-
143140
pci_read_config_dword(dev, cur->capndx+AGPNISTAT, &mnistat);
144141

145142
master[cdev].maxbw = (mnistat >> 16) & 0xff;
@@ -251,8 +248,6 @@ static int agp_3_5_isochronous_node_enable(struct agp_bridge_data *bridge,
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

0 commit comments

Comments
 (0)