diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-04-28 10:55:05 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-08 07:35:37 +0000 |
commit | 85a6af213e8ccc0eb177b994db4137cf5b3089a4 (patch) | |
tree | a0986ae15674cf4ab0ab6dc320cc65611f41c931 /src/gb/gprs_bssgp.c | |
parent | a8a5819155323be6fab2c874d4448c0c9510331e (diff) |
gsm0808: fix control flow issue
Coverity Scan reported a control flow issue in line 206:
CID 166898: Control flow issues (DEADCODE)
The second branch of the if statement can not be reached. The
purpose of the second if branch was to filter out zero length
elements if the header states that it is a non extended speech
codec type. This makes no sense, since the header needs at
least one byte.
This patch removes the second if branch, zero length elements
are catched by the already existing zero length check at the
beginning of the function
Change-Id: I89751fc0d598734c64ef1fdced75b7c4fa77c616
Diffstat (limited to 'src/gb/gprs_bssgp.c')
0 files changed, 0 insertions, 0 deletions