From ddcfa4c798feff307307438ec09c30ec0a7a92ab Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Wed, 29 Jul 2020 18:33:15 +0800 Subject: [PATCH] fix a coverity scan problem --- src/util/inc/tchecksum.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util/inc/tchecksum.h b/src/util/inc/tchecksum.h index 493c993c25..54043d68e1 100644 --- a/src/util/inc/tchecksum.h +++ b/src/util/inc/tchecksum.h @@ -35,8 +35,6 @@ extern "C" { typedef uint32_t TSCKSUM; static FORCE_INLINE TSCKSUM taosCalcChecksum(TSCKSUM csi, const uint8_t *stream, uint32_t ssize) { - assert(ssize >= 0 && stream != NULL); - return (*crc32c)(csi, stream, (size_t)ssize); } -- GitLab