From: Ken Raeburn Date: Thu, 12 Feb 2009 19:43:08 +0000 (+0000) Subject: Remove useless unsigned >=0 tests X-Git-Tag: krb5-1.8-alpha1~639 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a1396b8ca353078a496f124f2bbb08620ef3089d;p=krb5.git Remove useless unsigned >=0 tests git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21983 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_k_encode.c b/src/lib/krb5/asn.1/asn1_k_encode.c index 57a83f1f8..4790b57f1 100644 --- a/src/lib/krb5/asn.1/asn1_k_encode.c +++ b/src/lib/krb5/asn.1/asn1_k_encode.c @@ -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);