commit | d295b129762bf6b2b7541243f496e363580de4a2 | [log] [tgz] |
---|---|---|
author | Thierry Reding <thierry.reding@avionic-design.de> | Wed Jul 11 08:05:05 2012 +0200 |
committer | Thierry Reding <thierry.reding@avionic-design.de> | Mon Jul 23 13:24:17 2012 +0200 |
tree | db084cabcabf6924d940ee10b0398b4340ed90a7 | |
parent | 2132fa8d95bc13b8b0e307553b04ee3517762ebe [diff] |
pwm: fix used-uninitialized warning in pwm_get() 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>