Message ID | 20210201181351.1475223-2-mathieu.poirier@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=ZBoG=HD=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD11CC433E0 for <linux-arm-kernel@archiver.kernel.org>; Mon, 1 Feb 2021 18:15:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 73E8664DDE for <linux-arm-kernel@archiver.kernel.org>; Mon, 1 Feb 2021 18:15:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 73E8664DDE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=2U32QEUkEAevfK3uSGZ/5h1mRf6HIYJrGdUMfGX2cig=; b=Qn6S3xZd3xAHYAyeb9HO9hCtm eunk4xssQid6zHkZHNOhkPoRlaN4552c02k1TXFNPAQ7kAWdTLUNwemkd/kJrbjP+vLiM1M2qL26d uUJdb2sXrZV/Zaiu3iEZi/ctbfbNH8O+Sas7zwmBoe8od2qGWrx/1UM8pa7F9R6Jz1GYSABq1pNCH J76yZz/Hc3uRQC9sU4wl9xvhh2yJNAwihxjFiooIOxNJR62bNG0eA7lfokDQV2lywNMHGRjsi3rIK R2LQUags9BS1jlpCLnqkxjL9YHhBz+VFW6uO6a9eJ8rRnzjUUtBTK9j5WLDFox+D44t8m1U4U/iGA af0kUXAkw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6di5-0002yS-Ip; Mon, 01 Feb 2021 18:14:01 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6di0-0002te-7h for linux-arm-kernel@lists.infradead.org; Mon, 01 Feb 2021 18:13:57 +0000 Received: by mail-pl1-x62b.google.com with SMTP id x9so4559130plb.5 for <linux-arm-kernel@lists.infradead.org>; Mon, 01 Feb 2021 10:13:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b+kKbPCM5QoqG+cAM7BJq0jTSCBBxgPJ++jOnTflRKg=; b=cFsuGWLqZGXtcoWEE6SkenuYrfeXD7dE3JlwBdjuyByI2PGOyWc848IIP2VMjqFNZO iJHxp9A/9twFqd/E2hEpmG1bylTBTz7mSY3IhXfJrIEB5Dg+fEJMcsMGHV8eBtH1gZu9 2ecqEQgbAdSY3fnSaNiYkTSsULft83XwWXV37WTFKaC7w4l8EI/38mLQFebQZw/Vg7BT YqCGhLXZrnP7X/C6eIwJTWX6F821CCQgPvLYRV6pIUJzVI+ZJUB2PTHNYFoxyVdqMS5r EslxIMEarkAqcKrW3W2Y60bT5TGXFB/sdeDExia8Te1w/vPPhWOh7CnRjGfgJgzx+ep8 v98w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b+kKbPCM5QoqG+cAM7BJq0jTSCBBxgPJ++jOnTflRKg=; b=V7WDA7ubwVzA4sXXFWLrsQQRLOpG3dk7SQsWkQK1NtcPJ/JYVucnuv++oAFivMGffW Z+1dtsMFEsoXnSAoYsbNRADNFYdPN0krpErDHO+BCHKFuFW9xohk/ddff1wj6+OAbrbY WNGRu0v4gFMz+pZNTuagWrKGvIL+/5kHYRMaTwQIEzHUsjhSkQnP0/sVuAdyN8PJ3p+X dikwtyn0hvEGeCwT2e6YMD4AwcfXXjeR7EBguBHg+0g2p0prAH0yPbGvQEfM4lb5huIW z6riLRerGrp1FLFHv4lm2pkBBtZQ7jli0yLIxoe17PqPxsaTn8cFnpC/0Ji1OlQoaVZf hyHA== X-Gm-Message-State: AOAM533xfdcj4pFO6gDF9rK+U+5GTD3xu2xi8f7snx0b5KtsVrFYoe8m QYIIcezyNn2uzj+2qi+PsZyaDzNdjhYfsA== X-Google-Smtp-Source: ABdhPJzQ1f1Hgx/4Da5FS+4mKuRxEPGRYlAIhEpnhnpzJ6rV6iLHUQF9XPG3g9NECjecf+Yt7722dg== X-Received: by 2002:a17:902:ba85:b029:de:ba16:818b with SMTP id k5-20020a170902ba85b02900deba16818bmr18585225pls.75.1612203233966; Mon, 01 Feb 2021 10:13:53 -0800 (PST) Received: from xps15.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id e12sm75784pjj.23.2021.02.01.10.13.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 10:13:53 -0800 (PST) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 01/31] coresight: cti: Reduce scope for the variable 'cs_fwnode' in cti_plat_create_connection() Date: Mon, 1 Feb 2021 11:13:21 -0700 Message-Id: <20210201181351.1475223-2-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210201181351.1475223-1-mathieu.poirier@linaro.org> References: <20210201181351.1475223-1-mathieu.poirier@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210201_131356_309459_5F5F90A4 X-CRM114-Status: GOOD ( 15.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
coresight: Patches for v5.12
|
expand
|
diff --git a/drivers/hwtracing/coresight/coresight-cti-platform.c b/drivers/hwtracing/coresight/coresight-cti-platform.c index 98f830c6ed50..ccef04f27f12 100644 --- a/drivers/hwtracing/coresight/coresight-cti-platform.c +++ b/drivers/hwtracing/coresight/coresight-cti-platform.c @@ -343,7 +343,6 @@ static int cti_plat_create_connection(struct device *dev, { struct cti_trig_con *tc = NULL; int cpuid = -1, err = 0; - struct fwnode_handle *cs_fwnode = NULL; struct coresight_device *csdev = NULL; const char *assoc_name = "unknown"; char cpu_name_str[16]; @@ -397,8 +396,9 @@ static int cti_plat_create_connection(struct device *dev, assoc_name = cpu_name_str; } else { /* associated device ? */ - cs_fwnode = fwnode_find_reference(fwnode, - CTI_DT_CSDEV_ASSOC, 0); + struct fwnode_handle *cs_fwnode = fwnode_find_reference(fwnode, + CTI_DT_CSDEV_ASSOC, + 0); if (!IS_ERR(cs_fwnode)) { assoc_name = cti_plat_get_csdev_or_node_name(cs_fwnode, &csdev);