Author: bz
Date: Wed Dec 25 20:10:17 2013
New Revision: 259885
URL: http://svnweb.freebsd.org/changeset/base/259885

Log:
  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

Modified:
  head/sys/security/mac/mac_framework.c

Modified: head/sys/security/mac/mac_framework.c
==============================================================================
--- head/sys/security/mac/mac_framework.c       Wed Dec 25 20:08:44 2013        
(r259884)
+++ head/sys/security/mac/mac_framework.c       Wed Dec 25 20:10:17 2013        
(r259885)
@@ -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);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to