Skip to content

Commit

Permalink
xen-netback: remove redundant assignment to err
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and David S. Miller committed May 31, 2019
1 parent 6f43e52 commit 587a712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/xen-netback/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 587a712

Please sign in to comment.