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
1b0023f911
commit
96b652a34d
@ -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