MIPS: pci-rt3883: trivial: remove unused variable
Fixes the following compiler warning:
warning: unused variable 'flags' [-Wunused-variable]
Fixes: e5067c718b ("MIPS: pci-rt3883: Remove odd locking in PCI config space access code")
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Acked-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: trivial@kernel.org
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
committed by
Thomas Bogendoerfer
parent
791a7be27e
commit
becb0425be
@@ -100,7 +100,6 @@ static u32 rt3883_pci_read_cfg32(struct rt3883_pci_controller *rpc,
|
|||||||
unsigned bus, unsigned slot,
|
unsigned bus, unsigned slot,
|
||||||
unsigned func, unsigned reg)
|
unsigned func, unsigned reg)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
|
||||||
u32 address;
|
u32 address;
|
||||||
u32 ret;
|
u32 ret;
|
||||||
|
|
||||||
@@ -116,7 +115,6 @@ static void rt3883_pci_write_cfg32(struct rt3883_pci_controller *rpc,
|
|||||||
unsigned bus, unsigned slot,
|
unsigned bus, unsigned slot,
|
||||||
unsigned func, unsigned reg, u32 val)
|
unsigned func, unsigned reg, u32 val)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
|
||||||
u32 address;
|
u32 address;
|
||||||
|
|
||||||
address = rt3883_pci_get_cfgaddr(bus, slot, func, reg);
|
address = rt3883_pci_get_cfgaddr(bus, slot, func, reg);
|
||||||
@@ -229,7 +227,6 @@ static int rt3883_pci_config_read(struct pci_bus *bus, unsigned int devfn,
|
|||||||
int where, int size, u32 *val)
|
int where, int size, u32 *val)
|
||||||
{
|
{
|
||||||
struct rt3883_pci_controller *rpc;
|
struct rt3883_pci_controller *rpc;
|
||||||
unsigned long flags;
|
|
||||||
u32 address;
|
u32 address;
|
||||||
u32 data;
|
u32 data;
|
||||||
|
|
||||||
@@ -263,7 +260,6 @@ static int rt3883_pci_config_write(struct pci_bus *bus, unsigned int devfn,
|
|||||||
int where, int size, u32 val)
|
int where, int size, u32 val)
|
||||||
{
|
{
|
||||||
struct rt3883_pci_controller *rpc;
|
struct rt3883_pci_controller *rpc;
|
||||||
unsigned long flags;
|
|
||||||
u32 address;
|
u32 address;
|
||||||
u32 data;
|
u32 data;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user