Re: [PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-07 Thread Linus Walleij
On Mon, Dec 4, 2017 at 6:08 PM, Colin King wrote: > From: Colin Ian King > > In the (unlikely) event that community->ngpps is zero, or if every > gpp->gpio_base is less than zero, then an ininitialized value in > ret is returned by function

Re: [PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-07 Thread Linus Walleij
On Mon, Dec 4, 2017 at 6:08 PM, Colin King wrote: > From: Colin Ian King > > In the (unlikely) event that community->ngpps is zero, or if every > gpp->gpio_base is less than zero, then an ininitialized value in > ret is returned by function intel_gpio_add_pin_ranges. Fix this by > ensuring ret

Re: [PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-04 Thread Mika Westerberg
On Mon, Dec 04, 2017 at 05:08:15PM +, Colin King wrote: > From: Colin Ian King > > In the (unlikely) event that community->ngpps is zero, or if every > gpp->gpio_base is less than zero, then an ininitialized value in > ret is returned by function

Re: [PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-04 Thread Mika Westerberg
On Mon, Dec 04, 2017 at 05:08:15PM +, Colin King wrote: > From: Colin Ian King > > In the (unlikely) event that community->ngpps is zero, or if every > gpp->gpio_base is less than zero, then an ininitialized value in > ret is returned by function intel_gpio_add_pin_ranges. Fix this by >

[PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-04 Thread Colin King
From: Colin Ian King In the (unlikely) event that community->ngpps is zero, or if every gpp->gpio_base is less than zero, then an ininitialized value in ret is returned by function intel_gpio_add_pin_ranges. Fix this by ensuring ret is initialized to zero. It's a moot

[PATCH][next] pinctrl: intel: ensure error return ret is initialized

2017-12-04 Thread Colin King
From: Colin Ian King In the (unlikely) event that community->ngpps is zero, or if every gpp->gpio_base is less than zero, then an ininitialized value in ret is returned by function intel_gpio_add_pin_ranges. Fix this by ensuring ret is initialized to zero. It's a moot point, but I think it is