]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
util: Remove redundant assertion (CID 1497841)
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 6 Oct 2023 00:12:05 +0000 (13:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 02:18:31 +0000 (02:18 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/util.c

index 9d935d5f192188ae367790ff7804afc866e1819e..5f9310ec1c910b35d8174f9d83a52327d217044c 100644 (file)
@@ -498,7 +498,7 @@ static void dump_data_block16(const char *prefix, size_t idx,
        char tmp[16];
        size_t i;
 
-       SMB_ASSERT(len >= 0 && len <= 16);
+       SMB_ASSERT(len <= 16);
 
        snprintf(tmp, sizeof(tmp), "%s[%04zX]", prefix, idx);
        cb(tmp, private_data);