Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-10-02 Thread Christophe JAILLET
Le 02/10/2024 à 13:51, Jani Nikula a écrit : On Tue, 01 Oct 2024, Christophe JAILLET wrote: Le 30/09/2024 à 09:48, Jani Nikula a écrit : On Sat, 28 Sep 2024, Christophe JAILLET wrote: "name" is allocated and freed in intel_backlight_device_register(). The initial allocation just duplicates "

Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-10-02 Thread Jani Nikula
On Tue, 01 Oct 2024, Christophe JAILLET wrote: > Le 30/09/2024 à 09:48, Jani Nikula a écrit : >> On Sat, 28 Sep 2024, Christophe JAILLET >> wrote: >>> "name" is allocated and freed in intel_backlight_device_register(). >>> The initial allocation just duplicates "intel_backlight". >>> >>> Later,

Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-10-01 Thread Christophe JAILLET
Le 30/09/2024 à 09:48, Jani Nikula a écrit : On Sat, 28 Sep 2024, Christophe JAILLET wrote: "name" is allocated and freed in intel_backlight_device_register(). The initial allocation just duplicates "intel_backlight". Later, if a device with this name has already been registered, another dynam

Re: [PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-09-30 Thread Jani Nikula
On Sat, 28 Sep 2024, Christophe JAILLET wrote: > "name" is allocated and freed in intel_backlight_device_register(). > The initial allocation just duplicates "intel_backlight". > > Later, if a device with this name has already been registered, another > dynamically generated one is allocated using

[PATCH] drm/i915/backlight: Remove a useless kstrdup_const()

2024-09-28 Thread Christophe JAILLET
"name" is allocated and freed in intel_backlight_device_register(). The initial allocation just duplicates "intel_backlight". Later, if a device with this name has already been registered, another dynamically generated one is allocated using kasprintf(). So at the end of the function, when "name"