From 8e1b6ab073a890cc2da6965f9a57bfc91d8c6d38 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 10 Dec 2013 17:43:06 +0100 Subject: 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(-) (limited to 'trans/fakeroot.c') diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 58f11121..203f2c1b 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) -- cgit v1.2.3