From ceec584ad39bca6caa6704bde22af58551bb139f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 2 Jul 2012 20:01:19 +0000 Subject: [PATCH] * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate assignment found by Clang. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_virtual.cc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1e9eb5ebc..7ae793f3b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-07-02 Christopher Faylor + + * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate + assignment found by Clang. + 2012-07-02 Christopher Faylor * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS diff --git a/winsup/cygwin/fhandler_virtual.cc b/winsup/cygwin/fhandler_virtual.cc index 59bb6763c..af73dde15 100644 --- a/winsup/cygwin/fhandler_virtual.cc +++ b/winsup/cygwin/fhandler_virtual.cc @@ -77,7 +77,6 @@ fhandler_virtual::opendir (int fd) if (fd >= 0) { dir->__d_fd = fd; - res = dir; dir->__fh = this; res = dir; }