input: utils: fix kbd_matrix_state_log types

Change row and col static types to unsigned, this should prevent really
bad things from happening if a negative number ends up there for
whatever reasons without having to explicitly check for < 0.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2024-01-18 09:45:18 +00:00 committed by Fabio Baltieri
parent a9779eca40
commit 23714980b0
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ static void kbd_matrix_state_log_entry(char *header, kbd_row_t *data)
static void kbd_matrix_state_log(struct input_event *evt)
{
const struct input_kbd_matrix_common_config *cfg;
static int row, col, val;
static uint32_t row, col;
static bool val;
if (kbd_matrix_state_dev == NULL || kbd_matrix_state_dev != evt->dev) {
return;