From 1458ec65710af1fab626e0cd4e8fe30433bc6d04 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 5 Feb 2011 19:50:44 +0100 Subject: [PATCH] [DAHDI] remove unused variable --- openbsc/src/input/dahdi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openbsc/src/input/dahdi.c b/openbsc/src/input/dahdi.c index 7a3c2beae..08bd1e01c 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);