Re: [PATCH] staging: mt7621-pinctrl: fix uninitialized variable ngroups

2018-11-10 Thread Sergio Paracuellos
On Sat, Nov 10, 2018 at 11:28:06PM +, Colin King wrote: > From: Colin Ian King > > Currently the for_each_node_with_property loop us incrementing variable > ngroups however it was not initialized and hence will contain garbage. > Fix this by initializing ngroups to zero. > > Detected with

[PATCH] staging: mt7621-pinctrl: fix uninitialized variable ngroups

2018-11-10 Thread Colin King
From: Colin Ian King Currently the for_each_node_with_property loop us incrementing variable ngroups however it was not initialized and hence will contain garbage. Fix this by initializing ngroups to zero. Detected with static analysis with cppcheck: