mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-22 07:02:34 +00:00
Drop dead assignments
This commit is contained in:
parent
3abcee7142
commit
946db55b34
@ -1538,12 +1538,10 @@ static void switch_core_set_serial(void)
|
|||||||
bytes = write(write_fd, buf, sizeof(buf));
|
bytes = write(write_fd, buf, sizeof(buf));
|
||||||
bytes++;
|
bytes++;
|
||||||
close(write_fd);
|
close(write_fd);
|
||||||
write_fd = -1;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bytes = read(fd, buf, sizeof(buf));
|
bytes = read(fd, buf, sizeof(buf));
|
||||||
close(fd);
|
close(fd);
|
||||||
fd = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_core_set_variable("switch_serial", buf);
|
switch_core_set_variable("switch_serial", buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user