nfc: hci: Save a few bytes of memory when registering a 'nfc_llc' engine
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 3 Feb 2024 07:51:04 +0000 (08:51 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Feb 2024 14:36:06 +0000 (15:36 +0100)
commit83cdd8db75085f3e415f420d6022f9c813ea50af
treebb91bb5363cafa206f4fbd36f82e4eb868dba776
parentd6f4aac19ad44998c6b1cde0334ad76900136ca4
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.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/nfc/hci/llc.c