From patchwork Thu May 13 13:27:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "liuqi (BA)" X-Patchwork-Id: 12255807 Return-Path: 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.4 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 3AE3BC433ED for ; Thu, 13 May 2021 13:31:06 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 065EF613B6 for ; Thu, 13 May 2021 13:31:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 065EF613B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com 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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OiBM7EEaY2pKW9K24eY2fzl2UyFew0/gpS1v6grqvLQ=; b=PIwB1B7zWGvJx25bj8g28qZpU xHL+Ez+rFAj/yXJDb1DWe1DSS5o9BzCnsX6Kv43IrPLRWKt6liuLS8xm3Yz1DN1rB4M/wakggE1A3 Qdg/QzPUeygntSZ8+sUfoUnmGioUnzDvp0AjiG+gFb12kNa74caiISYpZ4HFqIGzSX2D8wQ5G2Ceo dtFXOOuizyY2Rb0gttptkXJVkyd8FFrB708A4UHzWSFpAxpyRm80QXymTH5ENfAUaHIJNwv16MEkX LV7omHuS51SFpBKKQznE1Cyk04YnQN/JDb9qxPN5qMEA0/AmrHtud6vNdMQVvBFCj/fL1GGGoyQDH kl26m6/Wg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lhBO9-005bhk-Uf; Thu, 13 May 2021 13:28:30 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhBNy-005bgh-5t for linux-arm-kernel@desiato.infradead.org; Thu, 13 May 2021 13:28:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pCquCGF0uwBmRr9NPYkXpwP08rWkvRYkvEKsvXoX1po=; b=nSmcaykMCdnrgshzb+25O3VxDB cAeMxita0hExutDfb7OdnAhyGGFOn37vrlMXlHawhyj7LMoWBiwh/MpvgsupEfdCK/y6dNKnWK89q Lg/HpEA9FQVQAKfzWQSiCSHjVdSBOYz4dUX10yMOHulQGb3jf+VVUqlOnSKSGkAWrWMagzZVhgwP3 ww1YCte0v0E0u5teqkEecMGANKQz/Bg9AD6EBCv/aqGZ9ying2bS/e6Ai/x1kDOb2oejhZSE0MjgW FmHKn+cvrhaG4NEjfBwWMxCVE1hcpmOoTOyxc1xtA7m7caf9a2wGhEvJfD0BM1TqQfGdCijFCGBbT RbhwcpWQ==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lhBNs-00BGzs-Pn for linux-arm-kernel@lists.infradead.org; Thu, 13 May 2021 13:28:14 +0000 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fgspq0x91z16P3H; Thu, 13 May 2021 21:25:23 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Thu, 13 May 2021 21:27:54 +0800 From: Qi Liu To: , , CC: , , , Subject: [PATCH 2/3] coresight: core: Remove unnecessary assignment Date: Thu, 13 May 2021 21:27:48 +0800 Message-ID: <1620912469-52222-3-git-send-email-liuqi115@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620912469-52222-1-git-send-email-liuqi115@huawei.com> References: <1620912469-52222-1-git-send-email-liuqi115@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210513_062813_040202_0B49D29B X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Junhao He Remove unnecessary assignment of "path" in coresight_release_path(). Signed-off-by: Junhao He Signed-off-by: Qi Liu --- drivers/hwtracing/coresight/coresight-core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c index 4ddf3d2..d75b19a 100644 --- a/drivers/hwtracing/coresight/coresight-core.c +++ b/drivers/hwtracing/coresight/coresight-core.c @@ -886,7 +886,6 @@ void coresight_release_path(struct list_head *path) } kfree(path); - path = NULL; } /* return true if the device is a suitable type for a default sink */