diff options
| author | Jiapeng Chong <[email protected]> | 2023-06-13 01:18:53 +0000 |
|---|---|---|
| committer | Jens Wiklander <[email protected]> | 2023-06-15 06:49:55 +0000 |
| commit | 6a8b7e80105416cc7324fda295608ea2d3f98862 (patch) | |
| tree | da732939c71fc78a8c5f644333b72214733f86fc /scripts/clang-tools/gen_compile_commands.py | |
| parent | Linux 6.4-rc2 (diff) | |
| download | kernel-6a8b7e80105416cc7324fda295608ea2d3f98862.tar.gz kernel-6a8b7e80105416cc7324fda295608ea2d3f98862.zip | |
tee: optee: Use kmemdup() to replace kmalloc + memcpy
Use kmemdup rather than duplicating its implementation.
./drivers/tee/optee/smc_abi.c:1542:12-19: WARNING opportunity for kmemdup.
Reported-by: Abaci Robot <[email protected]>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5480
Signed-off-by: Jiapeng Chong <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
