lkml.org 
[lkml]   [2024]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init()
    On Wed, Apr 17, 2024 at 07:49:45PM +0200, Niklas Cassel wrote:
    > @@ -761,6 +755,7 @@ static int pci_epf_test_core_init(struct pci_epf *epf)
    > if (ret)
    > return ret;
    >
    > + msi_capable = epc_features->msi_capable;
    > if (msi_capable) {

    Or just: if (epc_features->msi_capable) {

    ;)

    > ret = pci_epc_set_msi(epc, epf->func_no, epf->vfunc_no,
    > epf->msi_interrupts);

    regards,
    dan carpenter


    \
     
     \ /
      Last update: 2024-05-27 16:43    [W:7.277 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site