From 21c84e00d3c094abc5e429eec83c6fb5b2e25695 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 20 Jan 2010 21:57:34 +0100 Subject: [PATCH] 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. --- src/node_device/node_device_linux_sysfs.c | 3 --- 1 file changed, 3 deletions(-) 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: