Re: [PATCH] staging: media: atomisp: use sizeof(*pointer) in vzalloc
From: Andy Shevchenko
Date: Sun Jul 19 2026 - 04:00:24 EST
On Sat, Jul 18, 2026 at 8:42 PM Prajval Chaudhary
<prajvalchaudhari733@xxxxxxxxx> wrote:
>
> Fix checkpatch style warnings by replacing explicit 'sizeof(struct ...)'
> types with 'sizeof(*pointer)' inside vzalloc allocations. This aligns
> the code with modern kernel coding style standards and ensures the
> allocations automatically adapt if the pointer's structure type changes
> in the future.
Unneeded churn. Is it for some kind of training session?
There are more desired activities that newbies can perform against this driver.
--
With Best Regards,
Andy Shevchenko