diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-07 02:32:44 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-08-07 02:32:44 +0800 |
commit | 3e054ee556ec1fa10d43117c34711656f12359be (patch) | |
tree | 370e856b1444c4056739fc85372f14a681f31077 /src/main.c | |
parent | 625853992819593d33a5f6fa874bd98943b342b3 (diff) |
msc: Use msc_clear_queue instead of custom clear code.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -375,10 +375,7 @@ void bsc_link_down(struct link_data *data) data->clear_queue(data); /* clear pending messages from the MSC */ - while (!llist_empty(&link->pending_msgs)) { - struct msgb *msg = msgb_dequeue(&link->pending_msgs); - msgb_free(msg); - } + msc_clear_queue(data->bsc); /* for the case the link is going down while we are trying to reset */ if (data->bsc->closing) |