mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 03:52:37 +00:00
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 <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>