summaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-30 20:04:38 +0100
committerDavid S. Miller <davem@davemloft.net>2019-05-31 14:36:48 -0700
commit587a7126779b32a6c8983ae567d987c1a0c7a5dc (patch)
tree12ce56a0c2f2cc850fb677aa66f656f5650cab30 /drivers/net/xen-netback
parent6f43e5252833f346be429e9cf6946fb8a1977d73 (diff)
downloadlinux-587a7126779b32a6c8983ae567d987c1a0c7a5dc.tar.bz2
xen-netback: remove redundant assignment to err
The variable err is assigned with the value -ENOMEM that is never read and it is re-assigned a new value later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
-rw-r--r--drivers/net/xen-netback/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/xen-netback/interface.c b/drivers/net/xen-netback/interface.c
index 783198844dd7..240f762b3749 100644
--- a/drivers/net/xen-netback/interface.c
+++ b/drivers/net/xen-netback/interface.c
@@ -633,7 +633,7 @@ int xenvif_connect_data(struct xenvif_queue *queue,
unsigned int rx_evtchn)
{
struct task_struct *task;
- int err = -ENOMEM;
+ int err;
BUG_ON(queue->tx_irq);
BUG_ON(queue->task);