From 26c68df83974944afaaab819f0b091226344b6ee Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Tue, 25 Dec 2018 06:45:05 +0900 Subject: [PATCH] MediaDefs.cpp: Fix PVS 593 Remove unneed if condition, since 'size_t size' is unsigned. Change-Id: I283afe6c1c24713b8efa21bd70747293fbc61899 Reviewed-on: https://review.haiku-os.org/796 Reviewed-by: Barrett17 --- src/kits/media/MediaDefs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/media/MediaDefs.cpp b/src/kits/media/MediaDefs.cpp index 3745229e1c..9e8568d2a3 100644 --- a/src/kits/media/MediaDefs.cpp +++ b/src/kits/media/MediaDefs.cpp @@ -781,7 +781,7 @@ media_format::SpecializeTo(const media_format* otherFormat) status_t media_format::SetMetaData(const void* data, size_t size) { - if (!data || size < 0 || size > META_DATA_MAX_SIZE) + if (!data || size > META_DATA_MAX_SIZE) return B_BAD_VALUE; void* new_addr;