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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxxxxxxx>

Reviewed-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>

> ---
>  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 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux