aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/ipc.c')
-rw-r--r--samsung-ipc/ipc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c
index 5990cdd..c0cba8c 100644
--- a/samsung-ipc/ipc.c
+++ b/samsung-ipc/ipc.c
@@ -70,7 +70,6 @@ int ipc_device_detect(void)
length = read(fd, &buffer, sizeof(buffer));
close(fd);
- fd = -1;
line = strtok(buffer, "\n");
while (line != NULL) {
@@ -150,9 +149,6 @@ complete:
if (kernel_version != NULL)
free(kernel_version);
- if (fd >= 0)
- close(fd);
-
return index;
}