Merge branch 'nfc-hci-save-a-few-bytes-of-memory-when-registering-a-nfc_llc-engine'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 6 Feb 2024 14:36:09 +0000 (15:36 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Feb 2024 14:36:09 +0000 (15:36 +0100)
Christophe says:

====================
nfc: hci: Save a few bytes of memory when registering a 'nfc_llc' engine

nfc_llc_register() calls pass a string literal as the 'name' parameter.

So kstrdup_const() can be used instead of kfree() to avoid a memory
allocation in such cases.
====================

Link: https://lore.kernel.org/r/cover.1706946099.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge