commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 80/98: trans/fakeroot: remove dead code


From: Samuel Thibault
Subject: [hurd] 80/98: trans/fakeroot: remove dead code
Date: Tue, 14 Jan 2014 02:00:04 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 8e1b6ab073a890cc2da6965f9a57bfc91d8c6d38
Author: Justus Winter <address@hidden>
Date:   Tue Dec 10 17:43:06 2013 +0100

    trans/fakeroot: remove dead code
    
    * trans/fakeroot.c (netfs_S_dir_lookup): Remove dead code.
---
 trans/fakeroot.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/trans/fakeroot.c b/trans/fakeroot.c
index 58f1112..203f2c1 100644
--- a/trans/fakeroot.c
+++ b/trans/fakeroot.c
@@ -371,10 +371,8 @@ netfs_S_dir_lookup (struct protid *diruser,
   if (err)
     goto lose;
 
-  if (retry_name[0] == '\0' && *do_retry == FS_RETRY_NORMAL)
-    flags &= ~(O_CREAT|O_EXCL|O_NOLINK|O_NOTRANS|O_NONBLOCK);
-  else
-    flags = 0;
+  assert (retry_name[0] == '\0' && *do_retry == FS_RETRY_NORMAL);
+  flags &= ~(O_CREAT|O_EXCL|O_NOLINK|O_NOTRANS|O_NONBLOCK);
 
   err = iohelp_dup_iouser (&user, diruser->user);
   if (!err)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]