xen-netback: remove redundant assignment to err
authorColin Ian King <colin.king@canonical.com>
Thu, 30 May 2019 19:04:38 +0000 (20:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 May 2019 21:36:48 +0000 (14:36 -0700)
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>
drivers/net/xen-netback/interface.c

index 7831988..240f762 100644 (file)
@@ -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);