[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ac53deae-8fad-b896-805f-36343253a34b@codeaurora.org>
Date: Tue, 6 Mar 2018 09:02:26 -0500
From: Sinan Kaya <okaya@...eaurora.org>
To: Oza Pawandeep <poza@...eaurora.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Philippe Ombredanne <pombredanne@...b.com>,
Thomas Gleixner <tglx@...utronix.de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kate Stewart <kstewart@...uxfoundation.org>,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
Dongdong Liu <liudongdong3@...wei.com>,
Keith Busch <keith.busch@...el.com>, Wei Zhang <wzhang@...com>,
Timur Tabi <timur@...eaurora.org>
Subject: Re: [PATCH v12 3/6] PCI/PORTDRV: Implement generic find service
On 2/28/2018 12:04 PM, Oza Pawandeep wrote:
> +struct pcie_port_service_driver *pcie_port_find_service(struct pci_dev *dev,
> + u32 service)
> +{
> + struct pcie_port_service_driver *drv = NULL;
Remove initialization
> + struct portdrv_service_data pdrvs;
> +
> + pdrvs.service = service;
initialize pdrvs.drv = NULL here.
> + device_for_each_child(&dev->dev, &pdrvs, find_service_iter);
> +
> + drv = pdrvs.drv;
> + return drv;
> +}
--
Sinan Kaya
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.
Powered by blists - more mailing lists