Re: [PATCH] drm/amd/display: Clean up allocation in initialize_backlight_caps()

Markus Elfring <[email protected]> Sun, 28 Jun 2026 16:07:09 +0200
Newsgroups org.kernel.vger.kernel-janitors,org.freedesktop.lists.amd-gfx,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
> Just a small cleanup:
> 1) Remove unnecessary initialization.
> 2) Use the new kzalloc_obj() macro.
> 3) Reformat the NULL check to make checkpatch happy.
> 4) Remove the unnecessary NULL check before kfree() since the pointer
>    is not NULL and anyway kfree() accepts NULL pointers.

Do these source code adjustments represent a patch squashing approach?

How good does it fit to known development requirements?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.1#n81

Regards,
Markus