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_strandqv...@spectrumdigital.se>
---
 drivers/staging/rtl8192e/rtl8192e/rtl_pci.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c 
b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
index 2ad92ee..22b6d97 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
@@ -50,12 +50,10 @@ static void rtl8192_parse_pci_configuration(struct pci_dev 
*pdev,
 bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev)
 {
        struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
-       u16 VenderID;
        u16 DeviceID;
        u8  RevisionID;
        u16 IrqLine;
 
-       VenderID = pdev->vendor;
        DeviceID = pdev->device;
        RevisionID = pdev->revision;
        pci_read_config_word(pdev, 0x3C, &IrqLine);
-- 
1.7.10.4

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to