On 2022/5/20 4:49, Jarkko Sakkinen wrote:
On Thu, May 19, 2022 at 10:47:02AM +0800, GUO Zihua wrote:Use struct_size helper for calculating size of flexible struct to avoid potential issues and improve readibility. Use size_add to calculate addition of size to prevent potential issues.What issues? Please explicitly state the issues. BR, Jarkko .
Hi Jarkko,This is a clean-up/optimization patch mostly focuses on readability and no actual issue is observed at the moment.
-- Best GUO Zihua