Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 12:59:41 +0400
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        "Alexander V. Chernikov" <melifaro@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r264986 - head/sys/net
Message-ID:  <20140428085941.GW85571@FreeBSD.org>
In-Reply-To: <201404262103.s3QL3fAX048245@svn.freebsd.org>
References:  <201404262103.s3QL3fAX048245@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 26, 2014 at 09:03:41PM +0000, Alexander V. Chernikov wrote:
A> @@ -1425,6 +1431,95 @@ bad:
A>  #undef ifpaddr
A>  #undef flags
A>  
A> +#define	senderr(e) { error = e; goto bad; }

...

A> +		if (error != 0)
A> +			senderr(error);

This resolves to "error = error". Surprised that compiler is silent.

Can this line and others like it be replaced with?

	if (error)
		goto bad;

-- 
Totus tuus, Glebius.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140428085941.GW85571>