✓ CI.checkpatch: success for drm/i915/display: Save a few bytes of memory in intel_backlight_device_register()
Patchwork
patchwork at emeril.freedesktop.org
Fri Feb 23 17:15:33 UTC 2024
== Series Details ==
Series: drm/i915/display: Save a few bytes of memory in intel_backlight_device_register()
URL : https://patchwork.freedesktop.org/series/130317/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
cd62896504543deb288c1d649eed56308dbcfb80
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit aa6394ec2209e98e1716269ddd3bcb840241134a
Author: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
Date: Fri Feb 23 18:09:28 2024 +0100
drm/i915/display: Save a few bytes of memory in intel_backlight_device_register()
'name' may still be "intel_backlight" when backlight_device_register() is
called.
In such a case, using kstrdup_const() saves a memory duplication when
dev_set_name() is called in backlight_device_register().
Use kfree_const() accordingly.
Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
+ /mt/dim checkpatch aed3f498154b240f09098da53b8fd5639ee54ecf drm-intel
aa6394ec2209 drm/i915/display: Save a few bytes of memory in intel_backlight_device_register()
More information about the Intel-xe
mailing list