Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 19:00:40 +0000 (UTC)
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260398 - head/sys/net
Message-ID:  <201401071900.s07J0eqZ046716@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: melifaro
Date: Tue Jan  7 19:00:40 2014
New Revision: 260398
URL: http://svnweb.freebsd.org/changeset/base/260398

Log:
  Remove dead code.
  
  Reported by:	Coverity
  Coverity CID:	1018057
  MFC after:	2 weeks

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Tue Jan  7 18:53:14 2014	(r260397)
+++ head/sys/net/if.c	Tue Jan  7 19:00:40 2014	(r260398)
@@ -283,8 +283,6 @@ retry:
 	}
 
 	/* Catch if_index overflow. */
-	if (idx < 1)
-		return (ENOSPC);
 	if (idx >= V_if_indexlim) {
 		if_grow();
 		goto retry;



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