Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134315
b: refs/heads/master
c: 910d30b
h: refs/heads/master
i:
  134313: 1a67dfc
  134311: c9e43aa
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Feb 7, 2009
1 parent 01d51e6 commit 9bbe34e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69ebbf58f3dff9fb4e5240e472b5869fa869dae1
refs/heads/master: 910d30b704542b49f83881a4832d8414c6c3d9c3
13 changes: 5 additions & 8 deletions trunk/net/ax25/ax25_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,27 +61,24 @@ void ax25_protocol_release(unsigned int pid)

write_lock_bh(&protocol_list_lock);
protocol = protocol_list;
if (protocol == NULL) {
write_unlock_bh(&protocol_list_lock);
return;
}
if (protocol == NULL)
goto out;

if (protocol->pid == pid) {
protocol_list = protocol->next;
write_unlock_bh(&protocol_list_lock);
return;
goto out;
}

while (protocol != NULL && protocol->next != NULL) {
if (protocol->next->pid == pid) {
s = protocol->next;
protocol->next = protocol->next->next;
write_unlock_bh(&protocol_list_lock);
return;
goto out;
}

protocol = protocol->next;
}
out:
write_unlock_bh(&protocol_list_lock);
}

Expand Down

0 comments on commit 9bbe34e

Please sign in to comment.