sgwdynspeed: remove some dead code
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 18 Feb 2014 09:00:38 +0000 (10:00 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 18 Feb 2014 09:00:48 +0000 (10:00 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/sgwdynspeed/src/speedFile.c

index 554dfdf..decf5b8 100644 (file)
@@ -273,11 +273,7 @@ void readSpeedFile(char * fileName) {
          refresh_smartgw_netmask();
        }
 
-       out: if (fp) {
-               fclose(fp);
-       }
-       if (fd >= 0) {
+       out: if (fd >= 0) {
                close(fd);
        }
-       return;
 }