Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: ti_am335x_tscadc: Remove redundant assignment to node

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@canonical.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Colin Ian King and committed by
Lee Jones
e368866e f058aa3f

+1 -1
+1 -1
drivers/mfd/ti_am335x_tscadc.c
··· 124 124 struct ti_tscadc_dev *tscadc; 125 125 struct resource *res; 126 126 struct clk *clk; 127 - struct device_node *node = pdev->dev.of_node; 127 + struct device_node *node; 128 128 struct mfd_cell *cell; 129 129 struct property *prop; 130 130 const __be32 *cur;