Re: [PATCH 12/17] i3c: renesas: Drop the explicit memset() call

Frank Li <[email protected]>
Newsgroups org.infradead.lists.linux-i3c,org.kernel.vger.linux-kernel,org.kernel.vger.linux-renesas-soc
Message-ID <ahCxyf_jbzzZqMcn@lizhi-Precision-Tower-5810>
On Fri, May 22, 2026 at 01:18:10PM +0300, Claudiu Beznea wrote:
> From: Claudiu Beznea <[email protected]>
>
> Drop the explicit memset() call on struct i3c_device_info object, as it is
> already initialized at declaration through compiler initialization.
>
> Signed-off-by: Claudiu Beznea <[email protected]>
> ---

Reviewed-by: Frank Li <[email protected]>

>  drivers/i3c/master/renesas-i3c.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/i3c/master/renesas-i3c.c b/drivers/i3c/master/renesas-i3c.c
> index 12bf4797a70d..865e67ac0fd2 100644
> --- a/drivers/i3c/master/renesas-i3c.c
> +++ b/drivers/i3c/master/renesas-i3c.c
> @@ -624,7 +624,6 @@ static int renesas_i3c_bus_init(struct i3c_master_controller *m)
>  	i3c->dyn_addr = ret;
>  	renesas_writel(i3c->regs, MSDVAD, MSDVAD_MDYAD(ret) | MSDVAD_MDYADV);
>
> -	memset(&info, 0, sizeof(info));
>  	info.dyn_addr = ret;
>  	return i3c_master_set_info(&i3c->base, &info);
>  }
> --
> 2.43.0
>

-- 
linux-i3c mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-i3c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.