[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250910-outrageous-liberal-falcon-9215d3-mkl@pengutronix.de>
Date: Wed, 10 Sep 2025 08:13:29 +0200
From: Marc Kleine-Budde <mkl@...gutronix.de>
To: Vincent Mailhol <mailhol@...nel.org>
Cc: Oliver Hartkopp <socketcan@...tkopp.net>,
Stéphane Grosjean <stephane.grosjean@...-networks.com>, Robert Nawrath <mbro1689@...il.com>,
Minh Le <minh.le.aj@...esas.com>, Duy Nguyen <duy.nguyen.rh@...esas.com>,
linux-can@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 04/20] can: netlink: refactor can_validate_bittiming()
On 10.09.2025 15:03:29, Vincent Mailhol wrote:
> Whenever can_validate_bittiming() is called, it is always preceded by
> some boilerplate code which was copy pasted all over the place. Move
> that repeated code directly inside can_validate_bittiming().
>
> Finally, the mempcy() is not needed. Just use the pointer returned by
> nla_data() as-is.
The memcpy()'ed struct is guaranteed to be properly aligned, is this
also the case for the casted nla_data() pointer?
regards,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung Nürnberg | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists