Re: [patch] iio: light: apds9960: silence uninitialized variable warning

2016-04-23 Thread Jonathan Cameron
On 22/04/16 11:04, Dan Carpenter wrote: > It causes a static checker warning if we use "buf" on the failure path > so move that inside the if statement. > > Signed-off-by: Dan Carpenter Applied to the togreg branch of iio.git, Thanks, Jonathan > > diff --git a/drivers/iio/light/apds9960.c b/dr

[patch] iio: light: apds9960: silence uninitialized variable warning

2016-04-22 Thread Dan Carpenter
It causes a static checker warning if we use "buf" on the failure path so move that inside the if statement. Signed-off-by: Dan Carpenter diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index a6af56a..fbdd172 100644 --- a/drivers/iio/light/apds9960.c +++ b/drivers/iio/li