[PATCH] hid/tests: Remove redundant comparison.

Aric Stewart aric at codeweavers.com
Mon Oct 9 10:22:13 CDT 2017


Signed-off-by: Aric Stewart <aric at codeweavers.com>

On 10/9/17 7:10 AM, Andrey Gusev wrote:
> Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
> ---
>   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 ef2f72975d..ce9b3a5d12 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-patches mailing list