diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-30 09:20:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-02 06:00:12 +0200 |
commit | ecf602fb0f00a3a31d8ece9c8ef97050249485c3 (patch) | |
tree | 4d4b20889129fb211be259ae4c3f01f2e6626967 /drivers | |
parent | 19f55c4a8ba58ccfc89d6bee0a935d181491c30b (diff) | |
download | barebox-ecf602fb0f00a3a31d8ece9c8ef97050249485c3.tar.gz barebox-ecf602fb0f00a3a31d8ece9c8ef97050249485c3.tar.xz |
reset: remove dead initialization
rstc is never read before written, so just drop the initializer.
Reported-by: clang-analyzer-10
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-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 99b9c80655..26a54f21df 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -150,7 +150,7 @@ EXPORT_SYMBOL_GPL(reset_control_deassert); static struct reset_control *of_reset_control_get(struct device_node *node, const char *id) { - struct reset_control *rstc = ERR_PTR(-ENODEV); + struct reset_control *rstc; struct reset_controller_dev *r, *rcdev; struct of_phandle_args args; int index = 0; |