Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f8c5e944 authored by Chen Gang's avatar Chen Gang Committed by Jens Axboe
Browse files

kernel: trace: blktrace: remove redundent memcpy() in compat_blk_trace_setup()



do_blk_trace_setup() will fully initialize 'buts.name', so can remove
the related memcpy(). And also use BLKTRACE_BDEV_SIZE and ARRAY_SIZE
instead of hard code number '32'.

Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6678d83f
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