Skip to content

Commit 587a712

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Acked-by: Wei Liu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6f43e52 commit 587a712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/xen-netback/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ int xenvif_connect_data(struct xenvif_queue *queue,
633633
unsigned int rx_evtchn)
634634
{
635635
struct task_struct *task;
636-
int err = -ENOMEM;
636+
int err;
637637

638638
BUG_ON(queue->tx_irq);
639639
BUG_ON(queue->task);

0 commit comments

Comments
 (0)