mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
net/rose: remove redundant assignment to variable failed
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>
This commit is contained in:
parent
1ece2fbe9b
commit
53ebeca24a
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue