From: Paolo Abeni Date: Tue, 6 Feb 2024 14:36:09 +0000 (+0100) Subject: Merge branch 'nfc-hci-save-a-few-bytes-of-memory-when-registering-a-nfc_llc-engine' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=60b4dfcda647f86c62dc7b8219d2bfed19bb2698;p=linux.git Merge branch 'nfc-hci-save-a-few-bytes-of-memory-when-registering-a-nfc_llc-engine' 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 --- 60b4dfcda647f86c62dc7b8219d2bfed19bb2698