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>
This commit is contained in:
Colin Ian King 2019-05-30 20:04:38 +01:00 коммит произвёл David S. Miller
Родитель 6f43e52528
Коммит 587a712677
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -633,7 +633,7 @@ int xenvif_connect_data(struct xenvif_queue *queue,
unsigned int rx_evtchn) unsigned int rx_evtchn)
{ {
struct task_struct *task; struct task_struct *task;
int err = -ENOMEM; int err;
BUG_ON(queue->tx_irq); BUG_ON(queue->tx_irq);
BUG_ON(queue->task); BUG_ON(queue->task);