Commit 81e74ec2 authored by Bart Van Assche's avatar Bart Van Assche Committed by Doug Ledford

RDMA/cxgb4: Remove a set-but-not-used variable

Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 9ae970e2
...@@ -3877,7 +3877,6 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb) ...@@ -3877,7 +3877,6 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb)
struct net_device *pdev; struct net_device *pdev;
u16 rss_qid, eth_hdr_len; u16 rss_qid, eth_hdr_len;
int step; int step;
u32 tx_chan;
struct neighbour *neigh; struct neighbour *neigh;
/* Drop all non-SYN packets */ /* Drop all non-SYN packets */
...@@ -3959,14 +3958,12 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb) ...@@ -3959,14 +3958,12 @@ static int rx_pkt(struct c4iw_dev *dev, struct sk_buff *skb)
e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh, e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
pdev, 0); pdev, 0);
pi = (struct port_info *)netdev_priv(pdev); pi = (struct port_info *)netdev_priv(pdev);
tx_chan = cxgb4_port_chan(pdev);
dev_put(pdev); dev_put(pdev);
} else { } else {
pdev = get_real_dev(neigh->dev); pdev = get_real_dev(neigh->dev);
e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh, e = cxgb4_l2t_get(dev->rdev.lldi.l2t, neigh,
pdev, 0); pdev, 0);
pi = (struct port_info *)netdev_priv(pdev); pi = (struct port_info *)netdev_priv(pdev);
tx_chan = cxgb4_port_chan(pdev);
} }
neigh_release(neigh); neigh_release(neigh);
if (!e) { if (!e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment