Re: [PATCH] crypto: hisilicon - Add check for pci_find_ext_capability

From: Weili Qian
Date: Wed Nov 22 2023 - 07:11:48 EST




On 2023/11/17 18:36, Herbert Xu wrote:
> On Fri, Nov 17, 2023 at 10:07:00AM +0800, Weili Qian wrote:
>>
>> Thanks for your patch. The function qm_set_vf_mse() is called only after SRIOV
>> is enabled, so function pci_find_ext_capability() does not return 0. This check
>> makes no sense.
>
> Perhaps we could add a comment instead?
>
> Thanks,
>

Okay, I will add a comment for this.

Thanks,
Weili