lkml.org 
[lkml]   [2019]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 2/3] input: keyboard: gpio_keys_polled: use gpio lookup table
On Fri, Apr 26, 2019 at 3:03 PM Enrico Weigelt, metux IT consult
<info@metux.net> wrote:
>
> +static struct gpio_desc *gpio_keys_polled_get_gpiod_fwnode(
> + struct device *dev,
> + int idx,
> + const char *desc)
> +{
> + struct gpio_desc *gpiod;
> + struct fwnode_handle *child;
> + int x;
> +
> + /* get the idx'th child node */
> + child = device_get_next_child_node(dev, NULL);
> + while (child && x) {
> + child = device_get_next_child_node(dev, child);
> + x--;
> + }

x is uninitialized here.

\
 
 \ /
  Last update: 2019-04-26 22:17    [W:0.034 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site