Skip to content
Commit 09bb8986 authored by Chen Zhou's avatar Chen Zhou Committed by Christoph Hellwig
Browse files

nvmet: replace kstrndup() with kmemdup_nul()



It is more efficient to use kmemdup_nul() if the size is known exactly.

The doc in kernel:
"Note: Use kmemdup_nul() instead if the size is known exactly."

Signed-off-by: default avatarChen Zhou <chenzhou10@huawei.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 263c6158
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