Commit d8f969e603b85931f25a1d50f3a7a01e2712c17a
1 parent
b3b8dc51c1
Exists in
master
and in
4 other branches
ax25: Fix set-but-unused variable.
The variable 's' is set but unused in ax25_protocol_release(). Just kill it off. Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
net/ax25/ax25_iface.c
... | ... | @@ -58,7 +58,7 @@ |
58 | 58 | |
59 | 59 | void ax25_protocol_release(unsigned int pid) |
60 | 60 | { |
61 | - struct ax25_protocol *s, *protocol; | |
61 | + struct ax25_protocol *protocol; | |
62 | 62 | |
63 | 63 | write_lock_bh(&protocol_list_lock); |
64 | 64 | protocol = protocol_list; |
... | ... | @@ -72,7 +72,6 @@ |
72 | 72 | |
73 | 73 | while (protocol != NULL && protocol->next != NULL) { |
74 | 74 | if (protocol->next->pid == pid) { |
75 | - s = protocol->next; | |
76 | 75 | protocol->next = protocol->next->next; |
77 | 76 | goto out; |
78 | 77 | } |