]> xenbits.xensource.com Git - libvirt.git/commitdiff
clean-up: remove unnecessary closedir call
authorJim Meyering <meyering@redhat.com>
Wed, 20 Jan 2010 20:57:34 +0000 (21:57 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 20 Jan 2010 20:57:34 +0000 (21:57 +0100)
* src/node_device/node_device_linux_sysfs.c (get_virtual_functions_linux):
Remove unnecessary closedir.  Spotted by Dave Allan.

src/node_device/node_device_linux_sysfs.c

index 674ee2660da82b6792254b749e95fadc7e444944..73d8f8ed111cc4fe1e35aefe5468221d43a594a4 100644 (file)
@@ -366,9 +366,6 @@ int get_virtual_functions_linux(const char *sysfs_path,
         }
     }
 
-    closedir(dir);
-    dir = NULL;
-
     ret = 0;
 
 out: