Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp595760iol; Thu, 9 Jun 2022 09:45:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrLMkTAobcND3I6EywwokKrIGKc6+XCLxW5vcXxFgdJg4/AOAlm/U95SArobfN4AY4ng7o X-Received: by 2002:a17:903:2c1:b0:158:f9d0:839c with SMTP id s1-20020a17090302c100b00158f9d0839cmr39757974plk.118.1654793149470; Thu, 09 Jun 2022 09:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654793149; cv=none; d=google.com; s=arc-20160816; b=EzU8bI54wsn9KXnzXRlqiDwYcRVlSE/NctjC+aBpnsubsRE5T2U3r9zipZbV4ERWX4 o6rxl9xKRSRseo0HJFFpZIONY04oPGk64KSKA9xNLZorXKqrVK2nYWv+UWs1Amw+kME5 kye3vSF6zhd2l3YREJ99NGuudQTDJLiJl9B2tQH9y1wNHe573onLmoxxIbage8WbVFtI znx28Fc722jyQ440wQ4FoXm/ABHPksXxthvZQERb8zYPGbhpMdq/BVHgALqS3lwGkvPx /vuULuJGjP1mXBKTJyd+SZnuOlZqibAng/en7/rGk7wAMWrlwcGlQcKx8d+DtcGCSIQz kjgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=ptxD9HuWbMbreO0BgUNscW2/7MNGEyI3okISSc2DDUc=; b=R2cu/jE2BWw569B94AGfOueTNAcMks4wumtQxBFEOGNsHO3DsiZ19OVORiN5ywHPS6 mfF2zovm3sLNzO+Obd8bIQ7Lzf5TYMax1KUwhPQoFa41P2zfe3M40p2c0cjSuxYXusj9 ewqLAveKrlWukpkbRNxmWfJolnBAyS3TlR4vELlIvLJIJewyjNnAL5fTYT3UcTpAHa4O SD6YKCrqjoI/4k8e6E2MPZtcsbtm3Z3B21QGFBKNP4FDF21Hk5s8pJpfBcHYSvTnI3Wr VU5xWxJqUdLAQQ4MMzqjuFDB9MEktBdPgGYzcOW2IGtK2rSlpjcFwEoZshGRmxanVWvz SXKA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w64-20020a638243000000b003fe36012904si6863848pgd.145.2022.06.09.09.45.36; Thu, 09 Jun 2022 09:45:49 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344526AbiFIPgr (ORCPT + 99 others); Thu, 9 Jun 2022 11:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344371AbiFIPgm (ORCPT ); Thu, 9 Jun 2022 11:36:42 -0400 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77088191413; Thu, 9 Jun 2022 08:36:41 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-3137c877092so45051167b3.13; Thu, 09 Jun 2022 08:36:41 -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=ptxD9HuWbMbreO0BgUNscW2/7MNGEyI3okISSc2DDUc=; b=Nso0+68huTwjMjSsIzjDaqxMsTTbz2NbZo71tr1N4VJvEfRSGBd7VPlkb6nVENFzbc rAk5BhvsFKeu74v/vO0Z1my2HaGAG8CKU55PNgqMvjDH2MaVfslTH2Weg2xXfw/N0VgA a/NuOE5P9v32KBNs3EASFikpq4j97ImOgu5cVoZtYQIWBV6Q51ajFMBF5nRhcvr3wXM4 o0DaCNgIkF1iIelCcP6ELc0a6HG0/N5uwkkvxrt3l5s58r1T5I2AWjwNqKF6zISg21bR ymB23ijl72RUkydYGS6rVvl0gjPXsnBGu2m1zvKUa81Oa/NwrCnPNonX2aNpZYTkmLOp yvbA== X-Gm-Message-State: AOAM530CHPgeIWTJ5cyHtlTnCR29sokaUdP5W1WC/pFWHdAVPKt0XwtV 4RJSt5EDtywnpSMoyDw4PU3AHOBKdquOSn66Qs4OrSVY4dc= X-Received: by 2002:a81:5a0b:0:b0:310:26f7:6217 with SMTP id o11-20020a815a0b000000b0031026f76217mr36336684ywb.301.1654789000689; Thu, 09 Jun 2022 08:36:40 -0700 (PDT) MIME-Version: 1.0 References: <1843211.tdWV9SEqCh@kreacher> <7414189.EvYhyI6sBW@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 9 Jun 2022 17:36:29 +0200 Message-ID: Subject: Re: [PATCH v1 04/16] thunderbolt: 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 , Andreas Noever , Michael Jamet , Yehezkel Bernat , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 9, 2022 at 5:26 PM Andy Shevchenko wrote: > > 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. Yes, it can, will update. > > > + return acpi_find_child_by_adr(adev, port->port); > > --