Andrey Gusev : hidclass.sys: Remove check for negative value.

Alexandre Julliard julliard at winehq.org
Thu Nov 2 17:28:49 CDT 2017


Module: wine
Branch: master
Commit: 495ade93baa2ed13248a4a0e42cb35fda012bcf4
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=495ade93baa2ed13248a4a0e42cb35fda012bcf4

Author: Andrey Gusev <andrey.goosev at gmail.com>
Date:   Wed Nov  1 18:41:37 2017 +0200

hidclass.sys: Remove check for negative value.

Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/hidclass.sys/descriptor.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/hidclass.sys/descriptor.c b/dlls/hidclass.sys/descriptor.c
index ee13055..6b84997 100644
--- a/dlls/hidclass.sys/descriptor.c
+++ b/dlls/hidclass.sys/descriptor.c
@@ -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) {




More information about the wine-cvs mailing list