Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de7f2305 authored by Christopher N. Hesse's avatar Christopher N. Hesse Committed by bonuzzz
Browse files

input: gpio_keys: Fix uninitialized variable

(cherry picked from commit fd594c7ac9899652b32b4745be3ac753bd9a630d)
parent b13a68e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1002,7 +1002,7 @@ static int gpio_keys_probe(struct platform_device *pdev)

	for (i = 0; i < pdata->nbuttons; i++) {
		struct gpio_button_data *bdata = &ddata->data[i];
		char *code_name;
        char *code_name = NULL;

		if (bdata->button->code == KEY_POWER)
			code_name = "POWER_KEY";