Commit d056c9b8 authored by Philipp Zabel's avatar Philipp Zabel

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: default avatarPhilipp Zabel <>
parent 92e963f5
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment