From: Colin Ian King Date: Sun, 29 Oct 2017 12:58:51 +0000 (+0000) Subject: mfd: ti_am335x_tscadc: Remove redundant assignment to node X-Git-Tag: v4.19~1772^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e368866ea7a88f5ea16544c4e037b22d993dc3df;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 0f3fab4..3cd958a 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c @@ -124,7 +124,7 @@ static int ti_tscadc_probe(struct platform_device *pdev) struct ti_tscadc_dev *tscadc; struct resource *res; struct clk *clk; - struct device_node *node = pdev->dev.of_node; + struct device_node *node; struct mfd_cell *cell; struct property *prop; const __be32 *cur;