]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: tlan: don't set unused function argument
authorArnd Bergmann <arnd@arndb.de>
Thu, 16 Jun 2016 11:38:23 +0000 (13:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2016 00:33:12 +0000 (17:33 -0700)
We get a warning for tlan_handle_tx_eoc when building with "make W=1"

drivers/net/ethernet/ti/tlan.c: In function 'tlan_handle_tx_eoc':
drivers/net/ethernet/ti/tlan.c:1647:59: error: parameter 'host_int' set but not used [-Werror=unused-but-set-parameter]
 static u32 tlan_handle_tx_eoc(struct net_device *dev, u16 host_int)

This is harmless, but removing the unused assignment lets us avoid
the warning with no downside.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/tlan.c

index 561703317312e2bbcc1047eeb7f2271b0895be7a..ece0ea0f6b38b40eb2e2ece7b00b60128b328df9 100644 (file)
@@ -1651,7 +1651,6 @@ static u32 tlan_handle_tx_eoc(struct net_device *dev, u16 host_int)
        dma_addr_t              head_list_phys;
        u32                     ack = 1;
 
-       host_int = 0;
        if (priv->tlan_rev < 0x30) {
                TLAN_DBG(TLAN_DEBUG_TX,
                         "TRANSMIT:  handling TX EOC (Head=%d Tail=%d) -- IRQ\n",