diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-12-08 18:49:53 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2016-01-25 10:58:44 +0100 |
commit | d056c9b81918675c6dedbfae042c2329effad786 (patch) | |
tree | 502089ad41a3e42201a59f8e025b74b6085ee06c /drivers/reset | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d (diff) | |
download | linux-d056c9b81918675c6dedbfae042c2329effad786.tar.bz2 |
reset: remove unnecessary local variable initialization from of_reset_control_get_by_index
There is no need to initialize rstc, as it is unconditionally
assigned the return value of a kzalloc call before use.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index 87376638948d..4a63b379361c 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -152,7 +152,7 @@ EXPORT_SYMBOL_GPL(reset_control_status); struct reset_control *of_reset_control_get_by_index(struct device_node *node, int index) { - struct reset_control *rstc = ERR_PTR(-EPROBE_DEFER); + struct reset_control *rstc; struct reset_controller_dev *r, *rcdev; struct of_phandle_args args; int rstc_id; |