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:
parent
6f43e52528
commit
587a712677
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue