From d4ea289dc189520735f226cf8282dd1c1e0d3d0b Mon Sep 17 00:00:00 2001 From: Andrey Gusev Date: Mon, 9 Oct 2017 15:10:22 +0300 Subject: [PATCH] hid/tests: Remove redundant comparison. Signed-off-by: Andrey Gusev Signed-off-by: Aric Stewart Signed-off-by: Alexandre Julliard --- 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 ef2f72975d8..ce9b3a5d129 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) {