From 946db55b347c0612be9325ee575127bde82ce8ff Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Wed, 30 Apr 2014 22:40:30 +0000 Subject: [PATCH] Drop dead assignments --- src/switch_core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/switch_core.c b/src/switch_core.c index b09a576ef8..843fcc3953 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -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);