test: Remove the side-effect from the assertion

Coverity complains about this code as it doesn't know that the
OSMO_ASSERT is always on. But it is good practice to now have the
side-effect in here.

Fixes: Coverity CID 1080724
This commit is contained in:
Holger Hans Peter Freyther 2013-12-12 14:42:35 +01:00
parent 81e8f0a8a2
commit b3a87ced5a
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ void test_replay_gprs_data(struct gprs_bssgp_pcu *pcu, struct msgb *msg, struct
OSMO_ASSERT(ph.cmd == GPRS_LLC_UI);
OSMO_ASSERT(ph.sapi == 1);
OSMO_ASSERT(ph.seq_tx == next_wanted_nu++);
OSMO_ASSERT(ph.seq_tx == next_wanted_nu);
next_wanted_nu += 1;
/* this test just wants to see messages... no further data is sent */
if (next_wanted_nu == 6) {