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:
bz 2013-12-25 20:10:17 +00:00
parent 1b0023f911
commit 96b652a34d

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);