Remove useless unsigned >=0 tests
authorKen Raeburn <raeburn@mit.edu>
Thu, 12 Feb 2009 19:43:08 +0000 (19:43 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 12 Feb 2009 19:43:08 +0000 (19:43 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21983 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1_k_encode.c

index 57a83f1f8eb52ef9721b4ea13447eb6837f58927..4790b57f19aaba1ccf2246e9a4f5e9afa918ed4b 100644 (file)
@@ -427,7 +427,7 @@ optional_etype_info_entry(const void *vptr)
     const krb5_etype_info_entry *val = vptr;
     unsigned int optional = 0;
 
-    if (val->length >= 0 && val->length != KRB5_ETYPE_NO_SALT)
+    if (val->length != KRB5_ETYPE_NO_SALT)
         optional |= (1u << 1);
 
     return optional;
@@ -445,7 +445,7 @@ optional_etype_info2_entry(const void *vptr)
     const krb5_etype_info_entry *val = vptr;
     unsigned int optional = 0;
 
-    if (val->length >= 0 && val->length != KRB5_ETYPE_NO_SALT)
+    if (val->length != KRB5_ETYPE_NO_SALT)
         optional |= (1u << 1);
     if (val->s2kparams.data)
         optional |= (1u << 2);