diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-10-29 08:58:51 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-01-08 06:03:34 -0500 |
commit | e368866ea7a88f5ea16544c4e037b22d993dc3df (patch) | |
tree | 8b58e2aea2c520fe2d0f967113d7e7729889265a | |
parent | f058aa3faba60cf61b573bd519366c809b6f2727 (diff) |
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>
-rw-r--r-- | drivers/mfd/ti_am335x_tscadc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 0f3fab47fe48..3cd958a31f36 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) | |||
124 | struct ti_tscadc_dev *tscadc; | 124 | struct ti_tscadc_dev *tscadc; |
125 | struct resource *res; | 125 | struct resource *res; |
126 | struct clk *clk; | 126 | struct clk *clk; |
127 | struct device_node *node = pdev->dev.of_node; | 127 | struct device_node *node; |
128 | struct mfd_cell *cell; | 128 | struct mfd_cell *cell; |
129 | struct property *prop; | 129 | struct property *prop; |
130 | const __be32 *cur; | 130 | const __be32 *cur; |