From: Grygorii Strashko Date: Fri, 1 Dec 2017 00:21:10 +0000 (-0600) Subject: net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res X-Git-Tag: v4.19~1702^2~445^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc49be85f601d6241a18c76f4a4a30349c375bba;p=platform%2Fkernel%2Flinux-rpi.git net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res Drop unused variable "poll" from cpsw_update_channels_res(). Signed-off-by: Grygorii Strashko Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index a73600d..523c110 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -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) {