Re: vhost-vdpa: Refactor copy_to_user() usage in vhost_vdpa_get_config()
From: Markus Elfring
Date: Thu Sep 26 2024 - 02:04:44 EST
>> Assign the return value from a copy_to_user() call to an additional
>> local variable so that a kvfree() call and return statement can be
>> omitted accordingly.
>
> Ugly and unidiomatic.
>
>> This issue was detected by using the Coccinelle software.
>
> What issue?
Opportunities for the reduction of duplicate source code.
Regards,
Markus