aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-07 02:32:44 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-07 02:32:44 +0800
commit3e054ee556ec1fa10d43117c34711656f12359be (patch)
tree370e856b1444c4056739fc85372f14a681f31077
parent625853992819593d33a5f6fa874bd98943b342b3 (diff)
msc: Use msc_clear_queue instead of custom clear code.
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index fcaccbd..581ab8c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)