lkml.org 
[lkml]   [2018]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v12 3/6] PCI/PORTDRV: Implement generic find service
On 2018-03-06 19:32, Sinan Kaya wrote:
> 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.
>
good point, will take care of this. [along with other comments if any]

>> + device_for_each_child(&dev->dev, &pdrvs, find_service_iter);
>> +
>> + drv = pdrvs.drv;
>> + return drv;
>> +}

\
 
 \ /
  Last update: 2018-03-08 08:57    [W:0.057 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site