Re: [PATCH] pwm: Fix uninitialized warnings in pwm_get()

2014-08-29 Thread Thierry Reding
On Thu, Aug 28, 2014 at 11:03:14AM +0200, Geert Uytterhoeven wrote: > With some versions of gcc (e.g. 4.1.2): > > drivers/pwm/core.c: In function ‘pwm_get’: > drivers/pwm/core.c:610: warning: ‘polarity’ may be used uninitialized in this > function > drivers/pwm/core.c:609: warning: ‘period’ may b

[PATCH] pwm: Fix uninitialized warnings in pwm_get()

2014-08-28 Thread Geert Uytterhoeven
With some versions of gcc (e.g. 4.1.2): drivers/pwm/core.c: In function ‘pwm_get’: drivers/pwm/core.c:610: warning: ‘polarity’ may be used uninitialized in this function drivers/pwm/core.c:609: warning: ‘period’ may be used uninitialized in this function While these are false positives, we can