Re: [PATCH] regulator: qcom-saw: avoid uninitialized variable warning

2016-02-20 Thread Mark Brown
On Thu, Feb 11, 2016 at 10:38:08AM +0100, Arnd Bergmann wrote: > gcc cannot know that a for_each_possible_cpu() loop always executes > at least once, so it warns about the use of the "found" variable > in qcom_saw_regulator_probe: I'm going to drop this driver so this won't be needed. signature.

[PATCH] regulator: qcom-saw: avoid uninitialized variable warning

2016-02-11 Thread Arnd Bergmann
gcc cannot know that a for_each_possible_cpu() loop always executes at least once, so it warns about the use of the "found" variable in qcom_saw_regulator_probe: drivers/regulator/qcom_saw-regulator.c: In function 'qcom_saw_regulator_probe': drivers/regulator/qcom_saw-regulator.c:154:5: error: 'fo