Skip to content
Snippets Groups Projects
Commit 379b63e7 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Jani Nikula
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ecfdb3af5005e05131e2fb93fd870830f39a8c29.1708708142.git.christophe.jaillet@wanadoo.fr


Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent a1789b3f
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment