From: Thierry Reding Date: Wed, 11 Jul 2012 06:05:05 +0000 (+0200) Subject: pwm: fix used-uninitialized warning in pwm_get() X-Git-Tag: v3.6-rc1~66^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d295b129762bf6b2b7541243f496e363580de4a2;p=pandora-kernel.git 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 Signed-off-by: Thierry Reding --- Reading git-diff-tree failed