From: Jim Meyering Date: Wed, 20 Jan 2010 20:57:34 +0000 (+0100) Subject: clean-up: remove unnecessary closedir call X-Git-Tag: v0.7.6~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21c84e00d3c094abc5e429eec83c6fb5b2e25695;p=thirdparty%2Flibvirt.git clean-up: remove unnecessary closedir call * src/node_device/node_device_linux_sysfs.c (get_virtual_functions_linux): Remove unnecessary closedir. Spotted by Dave Allan. --- diff --git a/src/node_device/node_device_linux_sysfs.c b/src/node_device/node_device_linux_sysfs.c index 674ee2660d..73d8f8ed11 100644 --- a/src/node_device/node_device_linux_sysfs.c +++ b/src/node_device/node_device_linux_sysfs.c @@ -366,9 +366,6 @@ int get_virtual_functions_linux(const char *sysfs_path, } } - closedir(dir); - dir = NULL; - ret = 0; out: