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 <b.vitruvio@gmail.com>
This commit is contained in:
Murai Takashi 2018-12-25 06:45:05 +09:00 committed by Barrett17
parent df580f53de
commit 26c68df839

View File

@ -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;