From: Joseph Sutton Date: Fri, 6 Oct 2023 00:12:05 +0000 (+1300) Subject: util: Remove redundant assertion (CID 1497841) X-Git-Tag: tevent-0.16.0~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=700754b0961a8bc11d31df17e5d1d8ee62bd9b9b;p=thirdparty%2Fsamba.git util: Remove redundant assertion (CID 1497841) Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/lib/util/util.c b/lib/util/util.c index 9d935d5f192..5f9310ec1c9 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -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);