aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-02-05 19:50:44 +0100
committerHarald Welte <laforge@gnumonks.org>2011-02-05 20:26:27 +0100
commit1458ec65710af1fab626e0cd4e8fe30433bc6d04 (patch)
treef730f8d7ca951ed145b35003ddea92eb9ae3623b /openbsc
parentd38f10593afbd9ab79d4940d48371333d0c034c9 (diff)
[DAHDI] remove unused variable
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/input/dahdi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c
index 7a3c2bea..08bd1e01 100644
--- a/openbsc/src/input/dahdi.c
+++ b/openbsc/src/input/dahdi.c
@@ -58,7 +58,6 @@ static int handle_ts1_read(struct bsc_fd *bfd)
struct e1inp_line *line = bfd->data;
unsigned int ts_nr = bfd->priv_nr;
struct e1inp_ts *e1i_ts = &line->ts[ts_nr-1];
- struct e1inp_sign_link *link;
struct msgb *msg = msgb_alloc(TS1_ALLOC_SIZE, "DAHDI TS1");
lapd_mph_type prim;
unsigned int sapi, tei;
@@ -83,7 +82,7 @@ static int handle_ts1_read(struct bsc_fd *bfd)
DEBUGP(DMI, "<= len = %d, sapi(%d) tei(%d)", ret, sapi, tei);
idata = lapd_receive(e1i_ts->driver.dahdi.lapd, msg->data, msg->len, &ilen, &prim);
- if (!idata)
+ if (!idata && prim == 0)
return -EIO;
msgb_pull(msg, 2);