lkml.org 
[lkml]   [2022]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 05/16] USB: ACPI: Use acpi_find_child_by_adr()
On Thu, Jun 09, 2022 at 03:56:42PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Instead of walking the list of children of an ACPI device directly
> in order to find the child matching a given bus address, use
> acpi_find_child_by_adr() for this purpose.

...

> if (!parent)
> return NULL;

Can be removed because it's embedded in the call below, no?

> + return acpi_find_child_by_adr(parent, raw);

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2022-06-09 17:29    [W:0.370 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site