From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A7A0C433EF for ; Thu, 9 Jun 2022 15:37:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344521AbiFIPhe (ORCPT ); Thu, 9 Jun 2022 11:37:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344529AbiFIPhd (ORCPT ); Thu, 9 Jun 2022 11:37:33 -0400 Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F8B09CF15; Thu, 9 Jun 2022 08:37:31 -0700 (PDT) Received: by mail-yb1-f172.google.com with SMTP id g201so14560980ybf.12; Thu, 09 Jun 2022 08:37:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oP68gQ771+clRj4cFwUH0Ec4RApgtfD1Z4Jp2OZ6o3Q=; b=KTZOd3Lx6qgH3bZ2+CKWKw7kX1GXH8dj0QuBGSNozzHtcZBpCHb+giK9N90t+BHW1B ImPveg3UN3MFA53ux9XrJ6XTr/hx8uZTN3Nwkji6QCarMw+ENff0nqPOnMrG+QuVZnLS ZcbFWKuj2PABFa4QMHcAxrhgVsy1/K6tciZlKSFUfyMTtMThnyYQponF1oDye4aB0X1K uAzEBmiDcqY9hGAxDbG62Ub4L3N4v53iQq3tAeQYUZvo4XZ8PU21VVZShMx4gX7tICSQ pNWM/4Fc1WcEFcrsALEnCPmlmxXteWU/DrWl7axLudmD0AtDlDYYYTD9JGruYAtI2nyY VD9g== X-Gm-Message-State: AOAM5304EDvfEEZvLAJtKtSHIaUdr329zjXEAeMHkSEY13FGK2jjBKF9 dfzT8eR/6QT4pv/Ra0gvLAxMYWCGpQtADmkQ2gI= X-Google-Smtp-Source: ABdhPJzewuSOGAz8uuz8IRC17huvxlqga12v+Ajz4GI+XfrmsGBeAKa5h8WcMA1Xq9aH/3UoFoD/f99MKmoBn/47fYk= X-Received: by 2002:a5b:4a:0:b0:663:7c5b:a5ba with SMTP id e10-20020a5b004a000000b006637c5ba5bamr21326407ybp.81.1654789050580; Thu, 09 Jun 2022 08:37:30 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <3459925.iIbC2pHGDl@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 9 Jun 2022 17:37:19 +0200 Message-ID: Subject: Re: [PATCH v1 05/16] USB: ACPI: Use acpi_find_child_by_adr() To: Andy Shevchenko Cc: "Rafael J. Wysocki" , Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus , Greg Kroah-Hartman , Heikki Krogerus , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Thu, Jun 9, 2022 at 5:27 PM Andy Shevchenko wrote: > > On Thu, Jun 09, 2022 at 03:56:42PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > 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? Yes, it can, in analogy with the thunderbolt code. Will update. > > + return acpi_find_child_by_adr(parent, raw); > > --