]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 1 Dec 2017 00:21:10 +0000 (18:21 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Dec 2017 21:36:32 +0000 (16:36 -0500)
Drop unused variable "poll" from cpsw_update_channels_res().

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index a73600dceb8bc76184e1f4f89ef8bbc3ac8e24b3..523c11013f470f48b93031bed9f53dd96d362907 100644 (file)
@@ -2298,7 +2298,6 @@ static int cpsw_check_ch_settings(struct cpsw_common *cpsw,
 
 static int cpsw_update_channels_res(struct cpsw_priv *priv, int ch_num, int rx)
 {
-       int (*poll)(struct napi_struct *, int);
        struct cpsw_common *cpsw = priv->cpsw;
        void (*handler)(void *, int, int);
        struct netdev_queue *queue;
@@ -2309,12 +2308,10 @@ static int cpsw_update_channels_res(struct cpsw_priv *priv, int ch_num, int rx)
                ch = &cpsw->rx_ch_num;
                vec = cpsw->rxv;
                handler = cpsw_rx_handler;
-               poll = cpsw_rx_poll;
        } else {
                ch = &cpsw->tx_ch_num;
                vec = cpsw->txv;
                handler = cpsw_tx_handler;
-               poll = cpsw_tx_poll;
        }
 
        while (*ch < ch_num) {