iio: light: apds9960: silence uninitialized variable warning
It causes a static checker warning if we use "buf" on the failure path so move that inside the if statement. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Showing
想要评论请 注册 或 登录