Re: [PATCH v2 2/2] i2c: designware-pci: Use standard pattern for memory allocation
From: Wolfram Sang
Date: Sat Oct 01 2022 - 18:44:02 EST
On Thu, Sep 29, 2022 at 12:42:15PM +0300, Andy Shevchenko wrote:
> The pattern
> foo = kmalloc(sizeof(*foo), GFP_KERNEL);
> has an advantage when foo type is changed. Since we are planning a such,
> better to be prepared by using standard pattern for memory allocation.
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> Acked-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
Applied to for-next, thanks!
Description: PGP signature