From 8f31a8fdaeb57204b2bf43c48d24a06212f787e8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 28 Dec 2009 11:48:12 +0100 Subject: [abis] Set rc to 0 to avoid running into a warning about unknown states When we have received the End Ack we are just doing nothing as we are done. This means rc remains -1 and we will print a warning but there is no need to have a warning... --- openbsc/src/abis_nm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c index db95f213c..8b3ac9c62 100644 --- a/openbsc/src/abis_nm.c +++ b/openbsc/src/abis_nm.c @@ -1581,6 +1581,7 @@ static int abis_nm_rcvmsg_sw(struct msgb *mb) sw->cbfn(GSM_HOOK_NM_SWLOAD, NM_MT_LOAD_END_ACK, mb, sw->cb_data, NULL); + rc = 0; break; case NM_MT_LOAD_END_NACK: if (sw->forced) { -- cgit v1.2.3