Found by coverity. Signed-off-by: Hannes Reinecke <hare@xxxxxxxx> --- libmultipath/uevent.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libmultipath/uevent.c b/libmultipath/uevent.c index 454b819..fb8b4a7 100644 --- a/libmultipath/uevent.c +++ b/libmultipath/uevent.c @@ -474,7 +474,7 @@ int uevent_listen(struct udev *udev) { int err = 2; struct udev_monitor *monitor = NULL; - int fd, fd_ep = -1, socket_flags, events; + int fd, socket_flags, events; int need_failback = 1; int timeout = 30; LIST_HEAD(uevlisten_tmp); @@ -579,8 +579,6 @@ int uevent_listen(struct udev *udev) } need_failback = 0; out: - if (fd_ep >= 0) - close(fd_ep); if (monitor) udev_monitor_unref(monitor); if (need_failback) -- 2.6.6 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel