diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-30 20:04:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-31 14:36:48 -0700 |
commit | 587a7126779b32a6c8983ae567d987c1a0c7a5dc (patch) | |
tree | 12ce56a0c2f2cc850fb677aa66f656f5650cab30 /drivers/net/xen-netback/interface.c | |
parent | 6f43e5252833f346be429e9cf6946fb8a1977d73 (diff) | |
download | linux-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/interface.c')
-rw-r--r-- | drivers/net/xen-netback/interface.c | 2 |
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); |