Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp543186iol; Thu, 9 Jun 2022 08:45:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvkdUPFFFpfE2v7FAgNGS6IOibriV3hcbVaZqHy6SqUXhTiH9PMIG/pi6Oj5EH8gZJ4qXU X-Received: by 2002:a63:28b:0:b0:401:b84d:780f with SMTP id 133-20020a63028b000000b00401b84d780fmr159901pgc.187.1654789554907; Thu, 09 Jun 2022 08:45:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654789554; cv=none; d=google.com; s=arc-20160816; b=C6LLUa4BGLhbmx4iPV7bkOuYSSlAGtCcJGQsVTO8+5O+s27KqNarx280a037cFe5bG 3uF+iytuaRUpdv0K7sLq8i6hs9olQpNRQ0xlXKCcQF5h/wjtm28QtLynzfEpG/+8sQDt ddsxt1io9Rw/S8783Bh/610MiLCKXn+dimIvzTYoZJK44lu58eZF5uKAUsb/cTGJxMZw aoH5VKDQ/qSg+gjuovll/9ph6Ud/9oEIautbF7v0rdvWKRNg2cyc8WuDwEIoOqeGzLr3 LCew5eCKDHXOFq2AGGlav1vPyvKc5KolcKVteG79B4my2Woo6O5FnilRsTzRJxDEc6sE iPQA== 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=aiH/OmMTn0iE+G/V5q0KKdRov9sidZ0Gzmx9Kck/ck8=; b=gBMLN7Dod4C2Onr7nLfZdAbpZnkjHW9Ta0kVXSSpxIf9LBbVDoeYmzc0BQbHM0ux/c XYL3efKl99uw6Tgw7iBlwh5y1lxWMX/LpcyWnHZFwoJa0AX/n1u/CqXh6zMCSSZ0RosL YJC9fw0ZPQWtmw/uRvUfC65vJSKVTNpPo0vNm+a+YmXFgj2f8MGbrB8Zj1uFHJ+3Zf90 269R+YP2GwWjg9bI07wPrqKSeg4sVOtZYXoiXm81mOmbjVCVuOQW1liTbF34agv0vsmz fxN5Myv3RI1RxJFKNJCqGX7oL4fXqLM8GnvIeFnvMf3hd93ettCcJN2Q1OKWw6S64QQt 9WDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RbdIl56m; 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 gm1-20020a17090b100100b001e31dce0eb8si28513917pjb.62.2022.06.09.08.45.41; Thu, 09 Jun 2022 08:45:54 -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=RbdIl56m; 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 S1343915AbiFIP0U (ORCPT + 99 others); Thu, 9 Jun 2022 11:26:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242972AbiFIP0S (ORCPT ); Thu, 9 Jun 2022 11:26:18 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7C4E4B407; Thu, 9 Jun 2022 08:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654788377; x=1686324377; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=LfRhNY4IeUXJ5GUS/DdcyZ4zd1tukJjcMtxj4uvvm2M=; b=RbdIl56mZRFQ++Vb6P+qQtWA/r2/QMNZdslywj73H5r4BRLUlHAvVlUM +OX11BiAAS49Jqv6FPvoBJAbRtEFzWW3uoRFf1lA9J7PwLWyFo5gUhAk7 /CSwsgTI3dFUcVJQhT6FUxiZxpR2atAob/B/4WYiy8jAiIX+Y82oHbfpA cn3YlhAcEqe10DCaPOCPhoSG4rvSAlocIs83RK+Ad338n+gFU3IpJ8lu8 jXlU31fPwZ9Chqz/+YCagEtwMhMP5UltZ9BNGIxkvKjH04XCwonAaZ3Fx 2Y+V2jVST8xpUjP+lWPeZlrw0W05SVRWc8T9v8rxstsJ0S+4AivHKNC6f A==; X-IronPort-AV: E=McAfee;i="6400,9594,10373"; a="339078181" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="339078181" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:26:14 -0700 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="684017304" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 08:26:11 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1nzK2e-000Xy5-Qg; Thu, 09 Jun 2022 18:25:48 +0300 Date: Thu, 9 Jun 2022 18:25:48 +0300 From: Andy Shevchenko To: "Rafael J. Wysocki" Cc: Linux ACPI , LKML , Linux PM , Mika Westerberg , Hans de Goede , Sakari Ailus , Andreas Noever , Michael Jamet , Yehezkel Bernat , linux-usb@vger.kernel.org Subject: Re: [PATCH v1 04/16] thunderbolt: ACPI: Use acpi_find_child_by_adr() Message-ID: References: <1843211.tdWV9SEqCh@kreacher> <7414189.EvYhyI6sBW@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7414189.EvYhyI6sBW@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:54:40PM +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 (!adev) > return NULL; Already checked in the below call, IIUC. Hence can be removed. > + return acpi_find_child_by_adr(adev, port->port); -- With Best Regards, Andy Shevchenko