aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/utils
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 10:16:42 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 10:17:37 +0200
commit8690b98e7c88b86a8862f168b55cb33e917cca94 (patch)
treeae657738546183096403de920fe9c1f637e21780 /openbsc/src/utils
parent8bb0720ebb56c595b6fdccbfc6c611387a82cfe5 (diff)
isdnsync: Remove a double close of the isdn device
The fd is already closed above the if statement and Coverity detected this as a double close. Fixes: Coverity CID 1040703
Diffstat (limited to 'openbsc/src/utils')
-rw-r--r--openbsc/src/utils/isdnsync.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/openbsc/src/utils/isdnsync.c b/openbsc/src/utils/isdnsync.c
index d8fca761b..cc8ff6723 100644
--- a/openbsc/src/utils/isdnsync.c
+++ b/openbsc/src/utils/isdnsync.c
@@ -57,7 +57,6 @@ int mISDN_open(void)
if (!(devinfo.Dprotocols & (1 << ISDN_P_TE_S0))
&& !(devinfo.Dprotocols & (1 << ISDN_P_TE_E1))) {
fprintf(stderr,"Interface does not support TE mode (%s)\n", strerror(errno));
- close(fd);
return ret;
}
fd = socket(PF_ISDN, SOCK_DGRAM, ISDN_P_LAPD_TE);