Skip to content

Commit

Permalink
net/rose: remove redundant assignment to variable failed
Browse files Browse the repository at this point in the history
The variable failed is being assigned a value that is never read, the
following goto statement jumps to the end of the function and variable
failed is not referenced at all.  Remove the redundant assignment.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Colin Ian King authored and davem330 committed Jan 7, 2020
1 parent 1ece2fb commit 53ebeca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/rose/rose_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,6 @@ struct rose_neigh *rose_get_neigh(rose_address *addr, unsigned char *cause,
for (i = 0; i < node->count; i++) {
if (!rose_ftimer_running(node->neighbour[i])) {
res = node->neighbour[i];
failed = 0;
goto out;
}
failed = 1;
Expand Down

0 comments on commit 53ebeca

Please sign in to comment.