diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-05-30 21:04:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-31 23:36:48 +0200 |
commit | 587a7126779b32a6c8983ae567d987c1a0c7a5dc (patch) | |
tree | 12ce56a0c2f2cc850fb677aa66f656f5650cab30 | |
parent | nexthop: remove redundant assignment to err (diff) | |
download | linux-587a7126779b32a6c8983ae567d987c1a0c7a5dc.tar.xz linux-587a7126779b32a6c8983ae567d987c1a0c7a5dc.zip |
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>
-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); |