projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3b8dc5
)
ax25: Fix set-but-unused variable.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 07:46:45 +0000
(
00:46
-0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 07:48:31 +0000
(
00:48
-0700)
The variable 's' is set but unused in ax25_protocol_release().
Just kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ax25/ax25_iface.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ax25/ax25_iface.c
b/net/ax25/ax25_iface.c
index 5a0dda8df492424b4e0c24255a625373b5cacf09..60b545e2822acee4e3a30a0cfd53ccb564dadd53 100644
(file)
--- 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;
}