hidclass.sys: Remove check for negative value.

Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrey Gusev 2017-11-01 18:41:37 +02:00 committed by Alexandre Julliard
parent 4438b2706b
commit 495ade93ba
1 changed files with 2 additions and 4 deletions

View File

@ -440,10 +440,8 @@ static void parse_io_feature(unsigned int bSize, int itemVal, int bTag,
static void parse_collection(unsigned int bSize, int itemVal,
struct collection *collection)
{
if (bSize <= 0)
return;
else
{
if (bSize)
{
collection->type = itemVal;
if (itemVal >= 0x07 && itemVal <= 0x7F) {