From patchwork Fri Feb 23 14:53:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 13569233 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6EF3FC54798 for ; Fri, 23 Feb 2024 14:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=rxM3Kowj5Sf4kWEkl1BlXPjsZu/s36epSCT6fKwMc5A=; b=UIWHmOUMizDm4O pPDuiT7Qg69jQtXjjccq7FECJRiGaE8+yCGsuAyZ44MgNL517LacXKcO++2up8RYSurHarEVeJf/O 6gJQWXxPGIV+MgfvhvxjeRm0etxMAnTd8q9vk4Y/8Af0/DbUfDvnOxIzEvuISdoc65eewWk2a3ujZ qah4bH1Pd/5FiYdLPtxSgRS8PVvgaX2E/W7AkSK3vR821/G+/8a9QvIyLJWVxHa7+y00Gd5NwnctP x0xbBgiwvC3A+CtqJqKER5JLl6wSHMKu6pwivKpj4q35MHAPWcYyf/hkEeOvKcZU2zgvlssGkTeX9 KzuWA7+fFB05YU9wdH2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdWvi-00000009s4Y-44Cz; Fri, 23 Feb 2024 14:53:38 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdWvd-00000009rya-1QLo for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 14:53:35 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-412934b98b8so4957025e9.3 for ; Fri, 23 Feb 2024 06:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708700011; x=1709304811; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=s/a+7Lbr7oxAEnMW9lRS2BPIWRChV9WXDE8CQg9Hrfk=; b=H1bdr4L1n2nE1ygN9VEHVjqCSADJCPuQXLA6gUfZBmiKBiOBK7duZ7AGTECtJXO094 /+o6g3QCguAWNxGY4qonOmVJv4A+CtuQSUdG547RWfL5LHv6sZhuzbg1HEEXy9VcTSER O8VxRuaf1nHK7cgfhRvKVFCnCnPmtUjJ9WbGsQFoX7aGok6Q35+sSG3p/nquCp9GgSnn GLcM/LSDCRZngaSKZYjkaDECeQQHR3djkP43uJHesdSRqJoVgcTAMV7y11dH19/Uk6Ov 3IfKKK4dtprRpHT+LIvRsyakQYXgdiqpIMbSd8/+ftAI3BgrAeAYut0dyiKdXRRd2AED 1n2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708700011; x=1709304811; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=s/a+7Lbr7oxAEnMW9lRS2BPIWRChV9WXDE8CQg9Hrfk=; b=shPlHnuuh0k1sQfMos75x3tOgp06E16iMM98pLv5KLZC4rEMj2T6mRApvZ0el2cLF0 CL09ob3J/N6MbkLUG3w7L4e4LUMGsxoeobtP3LWLd2XhzOlWGRmpAaT/wW6uAuYKT6JV Z7raaGXKgPSyTFjNoEH361x4ckXJwAkqGCfWl33B++UyFxmBhSz1UUkUZ/LVSbxXzlvD CP8g02xNwvYSbXxf+MpjuYVleMcpipEF14pcORg5HMnzcPmOYJwUOSWnEGvpKReM5UqF 4oespNA3um+ib/HhIbiDMGUcb/ICJYAhintbKLXB+sX56WS/HruUP8si3SEgTDjXGyjJ aZAg== X-Forwarded-Encrypted: i=1; AJvYcCUnTUb0PO4IF7hiNwKHoASE0kLBA1//FapMRBDF4M3RMAhzPmz314w5vnzJVS11FKWH8Bse3VwJWPV/erpG8DkoFc5LaoG1z6g8Ym8US/jRIUIX5a4= X-Gm-Message-State: AOJu0YxbExCtAxmzUnZ8edRXuchhdsZijNo/H2EfoNYOKUAX0AMuBw4e ZOrUGwuKaf/vpy8hrw7ycxoWeMLUTrvqLjOjH62CZqCa4YC2f+z9rvZaacVs X-Google-Smtp-Source: AGHT+IF35jagaTTZ5yDNpFhVTYaG+pRkNtNOoRROuGdHT169YIqL9YMhI6h0l9YJGvPC1RWOYJUXyw== X-Received: by 2002:a05:600c:1389:b0:412:952d:3c6a with SMTP id u9-20020a05600c138900b00412952d3c6amr44821wmf.13.1708700009287; Fri, 23 Feb 2024 06:53:29 -0800 (PST) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id t6-20020a05600c450600b0040fdf5e6d40sm2686953wmo.20.2024.02.23.06.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 06:53:28 -0800 (PST) From: Colin Ian King To: Roy Pledge , Li Yang , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] soc: fsl: dpio: remove redundant assignment to pointer p Date: Fri, 23 Feb 2024 14:53:27 +0000 Message-Id: <20240223145327.3909835-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_065333_565706_412AF1AE X-CRM114-Status: GOOD ( 10.51 ) 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 There are two places where pointer p is being assigned a value that is never read, the pointer is re-assingned later. The assignments are redundant and can be removed. Cleans up two clang scan build warnings: drivers/soc/fsl/dpio/qbman-portal.c:662:3: warning: Value stored to 'p' is never read [deadcode.DeadStores] drivers/soc/fsl/dpio/qbman-portal.c:820:3: warning: Value stored to 'p' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King --- drivers/soc/fsl/dpio/qbman-portal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/soc/fsl/dpio/qbman-portal.c b/drivers/soc/fsl/dpio/qbman-portal.c index 0a3fb6c115f4..03cc374f11d7 100644 --- a/drivers/soc/fsl/dpio/qbman-portal.c +++ b/drivers/soc/fsl/dpio/qbman-portal.c @@ -659,7 +659,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s, if (!s->eqcr.available) { eqcr_ci = s->eqcr.ci; - p = s->addr_cena + QBMAN_CENA_SWP_EQCR_CI; s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); s->eqcr.ci &= full_mask; @@ -817,7 +816,6 @@ int qbman_swp_enqueue_multiple_desc_direct(struct qbman_swp *s, full_mask = s->eqcr.pi_ci_mask; if (!s->eqcr.available) { eqcr_ci = s->eqcr.ci; - p = s->addr_cena + QBMAN_CENA_SWP_EQCR_CI; s->eqcr.ci = qbman_read_register(s, QBMAN_CINH_SWP_EQCR_CI); s->eqcr.available = qm_cyc_diff(s->eqcr.pi_ring_size, eqcr_ci, s->eqcr.ci);