Staging: et131x: kill TxMacTest field
authorAlan Cox <alan@linux.intel.com>
Wed, 18 Nov 2009 14:07:15 +0000 (14:07 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:20 +0000 (12:23 -0800)
It's really a local in the interrupt handler

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et131x_adapter.h
drivers/staging/et131x/et131x_isr.c

index ed35f8afdd418d11dab2def000ccf481976b0a1b..3f7f37a56b6c979df6bd1244d1c9a69ea4cf4357 100644 (file)
@@ -213,9 +213,6 @@ struct et131x_adapter {
        u32 MCAddressCount;
        u8 MCList[NIC_MAX_MCAST_LIST][ETH_ALEN];
 
-       /* MAC test */
-       u32 TxMacTest;
-
        /* Pointer to the device's PCI register space */
        ADDRESS_MAP_t __iomem *regs;
 
index 486abe47dfc7aa1b335e34b303b6fd1984183e42..3aeac7b92281b37d8292ee10092973b11d3c2785 100644 (file)
@@ -337,10 +337,9 @@ void et131x_isr_handler(struct work_struct *work)
                         */
                        /* TRAP();*/
 
-                       etdev->TxMacTest = readl(&iomem->txmac.tx_test);
                        dev_warn(&etdev->pdev->dev,
                                    "RxDMA_ERR interrupt, error %x\n",
-                                   etdev->TxMacTest);
+                                   readl(&iomem->txmac.tx_test));
                }
 
                /* Handle the Wake on LAN Event */