]> git.itanic.dy.fi Git - linux-stable/commit
platform/x86/dell: alienware-wmi: Use kasprintf()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 12 Nov 2023 07:44:15 +0000 (08:44 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 20 Nov 2023 13:05:04 +0000 (14:05 +0100)
commit3ecb4d85461a34323a849769030841533fcd0395
tree3668c276482aece707636c64416f12771e76457e
parent93ec6f222c680cef282a2e94fc42a130d34179b2
platform/x86/dell: alienware-wmi: Use kasprintf()

Use kasprintf() instead of hand writing it.
This saves the need of an intermediate buffer.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f2b2c9e5d80550e480a627c1b2139d5cc9472ffa.1699775015.git.christophe.jaillet@wanadoo.fr
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/dell/alienware-wmi.c