linux/net/nfc/hci
Christophe JAILLET 83cdd8db75 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>
2024-02-06 15:36:06 +01:00
..
command.c nfc: drop unneeded debug prints 2021-10-11 17:00:51 -07:00
core.c nfc: constify local pointer variables 2021-07-30 17:22:52 +02:00
hci.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
hcp.c NFC: hci: Split memcpy() of struct hcp_message flexible array 2022-09-27 07:45:18 -07:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
llc_nop.c nfc: constify nfc_llc_ops 2021-07-25 09:21:21 +01:00
llc_shdlc.c nfc: drop unneeded debug prints 2021-10-11 17:00:51 -07:00
llc.c nfc: hci: Save a few bytes of memory when registering a 'nfc_llc' engine 2024-02-06 15:36:06 +01:00
llc.h nfc: constify nfc_llc_ops 2021-07-25 09:21:21 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00