Drop dead assignments

This commit is contained in:
Travis Cross 2014-04-30 22:40:30 +00:00
parent 3abcee7142
commit 946db55b34

View File

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