Pau Espin Pedrol has uploaded this change for review. (
https://gerrit.osmocom.org/11981
Change subject: bsc: timelost_fsm: Remove unneeded set of out variable on
failure
......................................................................
bsc: timelost_fsm: Remove unneeded set of out variable on failure
Documentation of the function explicitly states that the out
target_pchan param returns the "PCHAN waited for". If we return false,
then no PCHAN is being waited for. The 2 callers of this function only
use this out param if function returns true, so let's simplify the code.
Change-Id: Ib8f9b7e1f584dee885d6823dc043682577572bd8
---
M src/osmo-bsc/timeslot_fsm.c
1 file changed, 0 insertions(+), 3 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/81/11981/1
diff --git a/src/osmo-bsc/timeslot_fsm.c b/src/osmo-bsc/timeslot_fsm.c
index 3ee2c5f..8bbb579 100644
--- a/src/osmo-bsc/timeslot_fsm.c
+++ b/src/osmo-bsc/timeslot_fsm.c
@@ -864,9 +864,6 @@
return true;
}
}
-
- if (target_pchan)
- *target_pchan = ts->pchan_is;
return false;
}
--
To view, visit https://gerrit.osmocom.org/11981
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib8f9b7e1f584dee885d6823dc043682577572bd8
Gerrit-Change-Number: 11981
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>