As constantly reported during kernel compilation, m_buflen is unsigned so

can never be < 0.  Remove the expression, which can never be true.

MFC after:	1 week
This commit is contained in:
Bjoern A. Zeeb 2013-12-25 20:10:17 +00:00
parent 010c2b8192
commit 523b2279b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259885

View File

@ -586,8 +586,7 @@ int
mac_check_structmac_consistent(struct mac *mac)
{
if (mac->m_buflen < 0 ||
mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
if (mac->m_buflen > MAC_MAX_LABEL_BUF_LEN)
return (EINVAL);
return (0);