[PATCH] net: Drop unnecessary device_set_name

Jerome Forissier jerome.forissier at arm.com
Tue Jul 7 14:39:53 CEST 2026


On 03/07/2026 09:50, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
> 
> When device was created, it already has a name assigned. There is
> no need to alloc space for name and set it with same device name.
> 
> Cleanup the code to avoid unnecessary device_set_name.
> 
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> ---
>  drivers/net/dm9000x.c    | 6 ------
>  drivers/net/ftmac100.c   | 6 ------
>  drivers/net/ks8851_mll.c | 6 ------
>  drivers/net/smc911x.c    | 6 ------
>  4 files changed, 24 deletions(-)
Reviewed-by: Jerome Forissier <jerome.forissier at arm.com>

Thanks,
-- 
Jerome


More information about the U-Boot mailing list