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
This commit is contained in:
Holger Hans Peter Freyther 2013-07-03 10:16:42 +02:00
parent 8bb0720ebb
commit 8690b98e7c
1 changed files with 0 additions and 1 deletions

View File

@ -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);