Skip to content
Commit 83cdd8db authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Paolo Abeni
Browse files

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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent d6f4aac1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment