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>
This commit is contained in:
Colin Ian King 2017-10-29 12:58:51 +00:00 committed by Lee Jones
parent f058aa3fab
commit e368866ea7
1 changed files with 1 additions and 1 deletions

View File

@ -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;