Drop dead assignments

This commit is contained in:
Travis Cross 2014-04-30 22:40:30 +00:00
parent 3abcee7142
commit 946db55b34
1 changed files with 0 additions and 2 deletions

View File

@ -1538,12 +1538,10 @@ static void switch_core_set_serial(void)
bytes = write(write_fd, buf, sizeof(buf));
bytes++;
close(write_fd);
write_fd = -1;
}
} else {
bytes = read(fd, buf, sizeof(buf));
close(fd);
fd = -1;
}
switch_core_set_variable("switch_serial", buf);