Skip to content

Commit

Permalink
ax25: Fix set-but-unused variable.
Browse files Browse the repository at this point in the history
The variable 's' is set but unused in ax25_protocol_release().
Just kill it off.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Apr 17, 2011
1 parent b3b8dc5 commit d8f969e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/ax25/ax25_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit d8f969e

Please sign in to comment.