Skip to content

Commit a6204fc

Browse files
yeyunfeng-devairlied
authored andcommitted
agp: remove unused variable arqsz in agp_3_5_enable()
This patch fix the following warning: drivers/char/agp/isoch.c: In function ‘agp_3_5_enable’: drivers/char/agp/isoch.c:322:13: warning: variable ‘arqsz’ set but not used [-Wunused-but-set-variable] u32 isoch, arqsz; ^~~~~ Signed-off-by: Yunfeng Ye <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
1 parent 2fec966 commit a6204fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/char/agp/isoch.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge)
314314
{
315315
struct pci_dev *td = bridge->dev, *dev = NULL;
316316
u8 mcapndx;
317-
u32 isoch, arqsz;
317+
u32 isoch;
318318
u32 tstatus, mstatus, ncapid;
319319
u32 mmajor;
320320
u16 mpstat;
@@ -329,8 +329,6 @@ int agp_3_5_enable(struct agp_bridge_data *bridge)
329329
if (isoch == 0) /* isoch xfers not available, bail out. */
330330
return -ENODEV;
331331

332-
arqsz = (tstatus >> 13) & 0x7;
333-
334332
/*
335333
* Allocate a head for our AGP 3.5 device list
336334
* (multiple AGP v3 devices are allowed behind a single bridge).

0 commit comments

Comments
 (0)