elflink: remove redundant code

The checking of fds >0 is not needed because it is already done earlier 
in the function (find_or_prepare_shared_file) and control leaves the 
function before there is any chance for it to hit the fail: label.

Signed-off-by: Jon Tollefson <[EMAIL PROTECTED]>

diff --git a/elflink.c b/elflink.c
index 03b79db..50d2180 100644
--- a/elflink.c
+++ b/elflink.c
@@ -704,8 +704,6 @@ static int find_or_prepare_shared_file(s
                              " failure: %s\n", tmp_path, strerror(errno));
                close(fdx);
        }
-       if (fds > 0)
-               close(fds);
 
        return -1;
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to