From 7aec0e65a0caaa4a6c2bcdd958f1186e716dd80b Mon Sep 17 00:00:00 2001 From: bz Date: Sat, 16 Aug 2014 13:11:59 +0000 Subject: MFC r259885: As constantly reported during kernel compilation, m_buflen is unsigned so can never be < 0. Remove the expression, which can never be true. --- sys/security/mac/mac_framework.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/security') diff --git a/sys/security/mac/mac_framework.c b/sys/security/mac/mac_framework.c index 2707310..0c64414 100644 --- a/sys/security/mac/mac_framework.c +++ b/sys/security/mac/mac_framework.c @@ -587,8 +587,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); -- cgit v1.1