Re: [PATCH] mfd: ti_am335x_tscadc: remove redundant assignment to node
From: Lee Jones
Date: Wed Nov 29 2017 - 05:59:31 EST
On Sun, 29 Oct 2017, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Node is being initialized a value that is never read, it is
> being written over a few statements into the function with
> the return value from call to of_get_child_by_name. Hence
> this initialization can be removed. Cleans up clang warning:
>
> drivers/mfd/ti_am335x_tscadc.c:127:22: warning: Value stored
> to 'node' during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> ---
> drivers/mfd/ti_am335x_tscadc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog