Remove dead code.

Reported by:	Coverity
Coverity CID:	1018057
MFC after:	2 weeks
This commit is contained in:
Alexander V. Chernikov 2014-01-07 19:00:40 +00:00
parent 79c596309c
commit 955a2deb52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260398

View File

@ -283,8 +283,6 @@ ifindex_alloc_locked(u_short *idxp)
}
/* Catch if_index overflow. */
if (idx < 1)
return (ENOSPC);
if (idx >= V_if_indexlim) {
if_grow();
goto retry;