pwm: fix used-uninitialized warning in pwm_get()
authorThierry Reding <thierry.reding@avionic-design.de>
Wed, 11 Jul 2012 06:05:05 +0000 (08:05 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 23 Jul 2012 11:24:17 +0000 (13:24 +0200)
Some versions of GCC don't seem no notice that the initialization of the
index variable is tied to that of the chip variable and falsely report
it as potentially being used uninitialized. However, to save anybody
else from tripping over this, we now initialize the index variable
unconditionally.

Originally-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>

No differences found