Andrey Gusev : hid/tests: Remove redundant comparison.
Alexandre Julliard
julliard at winehq.org
Mon Oct 9 14:28:41 CDT 2017
Module: wine
Branch: master
Commit: d4ea289dc189520735f226cf8282dd1c1e0d3d0b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d4ea289dc189520735f226cf8282dd1c1e0d3d0b
Author: Andrey Gusev <andrey.goosev at gmail.com>
Date: Mon Oct 9 15:10:22 2017 +0300
hid/tests: Remove redundant comparison.
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/hid/tests/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/hid/tests/device.c b/dlls/hid/tests/device.c
index ef2f729..ce9b3a5 100644
--- a/dlls/hid/tests/device.c
+++ b/dlls/hid/tests/device.c
@@ -167,7 +167,7 @@ static void process_data(HIDP_CAPS Caps, PHIDP_PREPARSED_DATA ppd, CHAR *data, D
{
ULONG usage_length = 100;
status = HidP_GetUsages(HidP_Input, i, 0, button_pages, &usage_length, ppd, data, data_length);
- ok (status == HIDP_STATUS_SUCCESS || (status != HIDP_STATUS_SUCCESS && usage_length == 0),
+ ok (status == HIDP_STATUS_SUCCESS || usage_length == 0,
"HidP_GetUsages failed (%x) but usage length still %i\n", status, usage_length);
if (usage_length)
{
More information about the wine-cvs
mailing list