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
diff --git a/openbsc/src/utils/isdnsync.c b/openbsc/src/utils/isdnsync.c
index d8fca76..cc8ff67 100644
--- a/openbsc/src/utils/isdnsync.c
+++ b/openbsc/src/utils/isdnsync.c
@@ -57,7 +57,6 @@
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);