bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH 04/12] libnetfs: fix a dead store


From: Samuel Thibault
Subject: Re: [PATCH 04/12] libnetfs: fix a dead store
Date: Wed, 20 Nov 2013 23:51:06 +0100
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Justus Winter, le Wed 20 Nov 2013 14:37:57 +0100, a écrit :
> * libnetfs/fsys-getroot.c (netfs_S_fsys_getroot): Fix dead store.

I'm undecided. Setting err to 0 makes it coherent with the rest, even if
it is not actually used.

> ---
>  libnetfs/fsys-getroot.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/libnetfs/fsys-getroot.c b/libnetfs/fsys-getroot.c
> index 0d80111..d3dda17 100644
> --- a/libnetfs/fsys-getroot.c
> +++ b/libnetfs/fsys-getroot.c
> @@ -84,7 +84,6 @@ netfs_S_fsys_getroot (mach_port_t cntl,
>         return err;
>       }
>        /* ENOENT means translator has vanished inside fshelp_fetch_root. */
> -      err = 0;
>      }
>  
>    if (type == S_IFLNK && !(flags & (O_NOLINK | O_NOTRANS)))
> -- 
> 1.7.10.4
> 

-- 
Samuel
<b> j'en ai parlé à xavier, il n'est pas interdit qu'il le change un jour
 -+- #sos - a le bras long vers le chameau -+-



reply via email to

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