diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 00:46:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 00:48:31 -0700 |
commit | d8f969e603b85931f25a1d50f3a7a01e2712c17a (patch) | |
tree | 9acab0aafe85820578ec850d45fc39814ba864f5 /net/ax25 | |
parent | b3b8dc51c16cdaca0d191a340022093fb5c9f003 (diff) | |
download | kernel_samsung_smdk4412-d8f969e603b85931f25a1d50f3a7a01e2712c17a.zip kernel_samsung_smdk4412-d8f969e603b85931f25a1d50f3a7a01e2712c17a.tar.gz kernel_samsung_smdk4412-d8f969e603b85931f25a1d50f3a7a01e2712c17a.tar.bz2 |
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>
Diffstat (limited to 'net/ax25')
-rw-r--r-- | net/ax25/ax25_iface.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ax25/ax25_iface.c b/net/ax25/ax25_iface.c index 5a0dda8..60b545e 100644 --- a/net/ax25/ax25_iface.c +++ b/net/ax25/ax25_iface.c @@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(ax25_register_pid); void ax25_protocol_release(unsigned int pid) { - struct ax25_protocol *s, *protocol; + struct ax25_protocol *protocol; write_lock_bh(&protocol_list_lock); protocol = protocol_list; @@ -72,7 +72,6 @@ void ax25_protocol_release(unsigned int pid) while (protocol != NULL && protocol->next != NULL) { if (protocol->next->pid == pid) { - s = protocol->next; protocol->next = protocol->next->next; goto out; } |