reset: remove unnecessary local variable initialization from of_reset_control_get_by_...
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 8 Dec 2015 17:49:53 +0000 (18:49 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 25 Jan 2016 09:58:44 +0000 (10:58 +0100)
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>
drivers/reset/core.c

index 87376638948d9a7d1cfd0b627f3a8f76411edcd0..4a63b379361c6bc62b83baff7b52f4bf77a74c0f 100644 (file)
@@ -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;
This page took 0.028247 seconds and 5 git commands to generate.