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:
parent
010c2b8192
commit
523b2279b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259885
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user