[PATCH 1/8] of: of_node_name_eq: correct alignment

Sascha Hauer sha at pengutronix.de
Wed Oct 19 23:36:20 PDT 2022


On Fri, Oct 14, 2022 at 06:35:27PM +0200, Marco Felsch wrote:
> Just a cleanup nothing special.
> 
> Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
> ---
>  drivers/of/base.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index ea2a88764b..2eee1279a9 100644
> --- a/drivers/of/base.c
> +++ b/drivers/of/base.c
> @@ -32,7 +32,7 @@ bool of_node_name_eq(const struct device_node *np, const char *name)
>  		return false;
>  
>  	node_name = kbasename(np->full_name);
> -		len = strchrnul(node_name, '@') - node_name;
> +	len = strchrnul(node_name, '@') - node_name;
>  
>  	return (strlen(name) == len) && (strncmp(node_name, name, len) == 0);

Applied (only this patch), thanks

Sascha

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