diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-09 17:35:17 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-09 17:37:42 +0100 |
commit | 5731dd74f76e7b9c6778ee57937fc92bb8be34d3 (patch) | |
tree | b1f65ed481d24adc5ade2eff0d7025a788b8ffb6 | |
parent | 4b6860db447ffb3997acd7394ea822f29303e797 (diff) |
misdn: Set ret to 0 when using the LAPD from userspace
Warning:
input/misdn.c:252:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is
true [-Wsometimes-uninitialized]
if (mline->use_userspace_lapd) {
^~~~~~~~~~~~~~~~~~~~~~~~~
input/misdn.c:289:9: note: uninitialized use occurs here
return ret;
^~~
input/misdn.c:252:2: note: remove the 'if' if its condition is always false
if (mline->use_userspace_lapd) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
input/misdn.c:241:9: note: initialize the variable 'ret' to silence this warning
int ret;
^
= 0
1 warning generated.
-rw-r--r-- | src/input/misdn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/input/misdn.c b/src/input/misdn.c index 5fdd8479..a72a21ed 100644 --- a/src/input/misdn.c +++ b/src/input/misdn.c @@ -255,6 +255,7 @@ static int handle_ts1_write(struct osmo_fd *bfd) osmo_hexdump(msg->data, msg->len)); lapd_transmit(e1i_ts->lapd, sign_link->tei, sign_link->sapi, msg); + ret = 0; } else { l2_data = msg->data; |