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:
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c:89]: (error) Uninitialized
Fixes: e12a1a6e ("staging: mt7621-pinctrl: refactor rt2880_pinctrl_dt_node_to_map function")
Signed-off-by: Colin Ian King <firstname.lastname@example.org>
Reviewed-by: Sergio Paracuellos <email@example.com>
Cc: stable <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>