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:
parent
8bb0720ebb
commit
8690b98e7c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue