[PATCH 2/2] reboot-mode: drop now unnecessary check

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Mar 22 11:50:36 GMT 2021



On 22.03.21 12:24, Sascha Hauer wrote:
> The reboot mode fixup tests if it is the live tree before modifying
> anything. This is unnecessary now as the live tree is never passed
> to fixups anymore.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> ---
>  drivers/power/reset/reboot-mode.c | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/power/reset/reboot-mode.c b/drivers/power/reset/reboot-mode.c
> index df3be03edf..d9b51dfea6 100644
> --- a/drivers/power/reset/reboot-mode.c
> +++ b/drivers/power/reset/reboot-mode.c
> @@ -71,10 +71,6 @@ static int of_reboot_mode_fixup(struct device_node *root, void *ctx)
>  	srcnp = reboot->dev->device_node;
>  	dstnp = of_get_node_by_reproducible_name(root, srcnp);
>  
> -	/* nothing to do when called on barebox-internal tree */
> -	if (srcnp == dstnp)
> -		return 0;
> -
>  	if (dstnp) {
>  		dstparent = dstnp->parent;
>  		of_delete_node(dstnp);
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list