[PATCH] staging: vt6655: device_main: Removed variables that is never used

From: Rickard Strandqvist
Date: Sat Jan 31 2015 - 10:12:40 EST


Variable was assigned a value that was never used.
I have also removed all the code that thereby serves no purpose.

This was found using a static code analysis program called cppcheck

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@xxxxxxxxxxxxxxxxxx>
---
drivers/staging/vt6655/device_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
index cd1a277..77dcb3fc 100644
--- a/drivers/staging/vt6655/device_main.c
+++ b/drivers/staging/vt6655/device_main.c
@@ -540,7 +540,6 @@ static bool device_get_pci_info(struct vnt_private *pDevice,
{
u16 pci_cmd;
u8 b;
- unsigned int cis_addr;

pci_read_config_byte(pcid, PCI_REVISION_ID, &pDevice->byRevId);
pci_read_config_word(pcid, PCI_SUBSYSTEM_ID, &pDevice->SubSystemID);
@@ -552,7 +551,7 @@ static bool device_get_pci_info(struct vnt_private *pDevice,
pDevice->memaddr = pci_resource_start(pcid, 0);
pDevice->ioaddr = pci_resource_start(pcid, 1);

- cis_addr = pci_resource_start(pcid, 2);
+ pci_resource_start(pcid, 2);

pDevice->pcid = pcid;

--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/