Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp546368iol; Thu, 9 Jun 2022 08:50:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6lwgbamIxF41Y5lSeyeqnzNZwvejmw3z5iyXcwQGAVqfsIpgb15567+2Vsd4002xOQ4Nk X-Received: by 2002:a17:902:6b42:b0:15d:3603:6873 with SMTP id g2-20020a1709026b4200b0015d36036873mr40380783plt.30.1654789817013; Thu, 09 Jun 2022 08:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789817; cv=none; d=google.com; s=arc-20160816; b=R5R3mckYq/0qBOmA9rThB0ekxHfZb3ce1ONrgcxt1nS6LiBpFkGUmV9LJshH9qj/uY LoNC6yhpCBmfD8BIgCXGGRikZDh9Sh24fqrr2do7mBXZug81Sx7lvylQ4zO1j0iDhCDe JZ0+sD15uIagZjH0RPqJTj3wtjF3cA4gAmQW+2M6sGIjpTAj28Y1wZ3blxZgcmxKGNJM oBjx2Rt0vC+ywTMri2n1RFODsOmpxjbDcUcKIf+sl98ZyELoljRIJC0gG1AlvhPxkNwW SPtYS8rJzzEEoBCf2a+n3vcUi76dipesevJjDYaxNhb8LKwNxgzK8YzUUSamkRQZBblX ifjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mvlZdDQkCPf5se1IIuwDYZQ+i07jX8MWPN7AQ4hD/2U=; b=ZySwXj8j7frDRivfyyuE4H9Ke14PpoOtRoLGj4DA9GcN5KTejsB4U1jT8rpR9tEohx 0jP639MtQoiwCpE9bQ1uTTWPcKJ0/CDSsMB1F3+CfjcGHRpDts8JEmKSVYXPOqHEpbq8 q4lYNwsvuVPW9RGtiYt6riFv5MOc5/6SZGj9DmtjrTMhdNbXLfbGs3b9os5Ueg2JiZf+ +1j2RPEXv+/YjRdBHkYhIJNiajoQezMUnjkbyxuu7cYaINnFMN9O2qQu+fZDJc++aF5l IbSCJPPC/QShXPuhqWjOCAYZemMg+wofS0L+CtODoGRS8FmVPzoInu7lm7sU+VqBpo3Y tiMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mpd97mMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me18-20020a17090b17d200b001df95edac97si39990945pjb.4.2022.06.09.08.50.02; Thu, 09 Jun 2022 08:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mpd97mMn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344501AbiFIP1w (ORCPT + 99 others); Thu, 9 Jun 2022 11:27:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344502AbiFIP1r (ORCPT ); Thu, 9 Jun 2022 11:27:47 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 981CC4BBBF; Thu, 9 Jun 2022 08:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654788462; x=1686324462; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=D6oG0RDL23b0HBnQM7v3r1dtxBOZ1/OfrXUIIgw7Fvg=; b=mpd97mMn4i31fe+E8e25t7eomK0tt1urt2TYC9J8qHY2vELCMSJ4Q0mY 6wy1Wy97NuMLVBllhWL6bYh4udsOI8BYzk9emt21oUBfuKKl5hZW1U22d jQj9i9T78pNn6jndJfluOgGudjPKOwiy6ceNFycAg8UOf9Bg6ZN+lrf7c cFMoOztVrPBEjKPlrqH0OyEDMqS5DjN2bUc8Su3gMRKDp58AbGrlSd/zg Sh99g2k3wLHZbC2lJTydTG7Jp9gwaX87lUoRac7279ZnDyZN/BzntjsRW RPMQ0hpzSGSRrIZsYtBAJpQ4c0DIvhtYSQeqPpBj/2cDgePI9bRhT1/Fm A==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="339078738" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="339078738" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:27:42 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="533647304" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:27:39 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nzK4O-000XyF-Go; Thu, 09 Jun 2022 18:27:36 +0300 Date: Thu, 9 Jun 2022 18:27:36 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus , Greg Kroah-Hartman , Heikki Krogerus , linux-usb@vger.kernel.org Subject: Re: [PATCH v1 05/16] USB: ACPI: Use acpi_find_child_by_adr() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <3459925.iIbC2pHGDl@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3459925.iIbC2pHGDl@kreacher> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > + return acpi_find_child_by_adr(parent, raw); -- With Best Regards, Andy Shevchenko