Input: tests - fix input_test_match_device_id test
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 May 2023 18:16:29 +0000 (11:16 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 5 May 2023 18:18:43 +0000 (11:18 -0700)
commitc73b4db076faf827d0656665ef5e97b76926b60f
tree55a32035c41c3397c432c99efa1ac04596893718
parent3516fa162a01f6611c3c129ce9529bdc720d36b7
Input: tests - fix input_test_match_device_id test

Properly initialize input_device_id structure in
input_test_match_device_id test to make sure it contains no garbage
causing the test to randomly fail.

Fixes: fdefcbdd6f36 ("Input: Add KUnit tests for some of the input core helper functions")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/ZFLI7T2qZTGJ1UUK@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tests/input_test.c