Skip to content

Commit

Permalink
mfd: ti_am335x_tscadc: Remove redundant assignment to node
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Colin Ian King authored and Lee Jones committed Jan 8, 2018
1 parent f058aa3 commit e368866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/ti_am335x_tscadc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e368866

Please sign in to comment.