diff options
| author | Chen Zhou <[email protected]> | 2020-05-08 19:59:06 +0800 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2020-05-27 07:12:36 +0200 |
| commit | 09bb8986c99cd3395e96635df9e712f5da45bc07 (patch) | |
| tree | a48707b70b820add97541e3e3f4fe87b161c4150 /tools/perf/scripts/python | |
| parent | 263c61581a38d0a5ad1f5f4a9143b27d68caeffd (diff) | |
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: Chen Zhou <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions