From: David S. Miller Date: Sun, 17 Apr 2011 07:46:45 +0000 (-0700) Subject: ax25: Fix set-but-unused variable. X-Git-Tag: MMI-PSA29.97-13-9~18929^2~534 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8f969e603b85931f25a1d50f3a7a01e2712c17a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- diff --git a/net/ax25/ax25_iface.c b/net/ax25/ax25_iface.c index 5a0dda8df492..60b545e2822a 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; }