Skip to content

Commit

Permalink
agp: remove unused variable arqsz in agp_3_5_enable()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
yeyunfeng-dev authored and airlied committed Jan 3, 2020
1 parent 2fec966 commit a6204fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/char/agp/isoch.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int agp_3_5_enable(struct agp_bridge_data *bridge)
{
struct pci_dev *td = bridge->dev, *dev = NULL;
u8 mcapndx;
u32 isoch, arqsz;
u32 isoch;
u32 tstatus, mstatus, ncapid;
u32 mmajor;
u16 mpstat;
Expand All @@ -329,8 +329,6 @@ int agp_3_5_enable(struct agp_bridge_data *bridge)
if (isoch == 0) /* isoch xfers not available, bail out. */
return -ENODEV;

arqsz = (tstatus >> 13) & 0x7;

/*
* Allocate a head for our AGP 3.5 device list
* (multiple AGP v3 devices are allowed behind a single bridge).
Expand Down

0 comments on commit a6204fc

Please sign in to comment.