Message ID | 20231111200221.338612-1-colin.i.king@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 B6005C4332F for <linux-arm-kernel@archiver.kernel.org>; Sat, 11 Nov 2023 20:03: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=XyiJvnFQGhpT5+muROfWEKadzEnvhitHCxI9AgV8XzA=; b=tf8d7/Zr2ukUBX QVp5QmT9fINM1dx6SJ1CgLQNDwbddsxZiyaQJ+pvm6+3YMysEBywnG+8wHXW5Kbt1PV7vjVKnUNz1 QgsFJ6Myb0lixPiylFz31pTrzITmnkaIuFUAvSAlKbFvPWsvKqtvc0vPebyvPBSrlv0Cs/JXS4lgw Nx2SHlV7JEGNBAYFCwXmmBxhSt+DqWl6qPBZB9GVA6T/FytQ32fyS72HGnzarw9CCA9pPUT2EHcz6 twvdiaNv8kHnxoRf8URoYvEMo2limyoJR6LnA/9Akyw7W8nI43JgeCYXGrxoB/jpL6Medg8vSSZlD vTYXJ0JpOZsy8YxrPfsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r1uBa-00BK0s-2B; Sat, 11 Nov 2023 20:02:30 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r1uBY-00BK08-07 for linux-arm-kernel@lists.infradead.org; Sat, 11 Nov 2023 20:02:29 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-408425c7c10so24711865e9.0 for <linux-arm-kernel@lists.infradead.org>; Sat, 11 Nov 2023 12:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699732943; x=1700337743; 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=ux3JnOkDtQtFFiSSmtfisW2bjV3FX8kEYn9loFMjrbU=; b=WYEFCHQxWVj3dtq+0Xg1coXq+g6+wmxcqK7utHGGqLgir0lLz8NDU+rycWEQc2NeoV DVAU25ASgrGV2WkwcBV82AVlsgrInlRvp+nsPaRjX1YBsn1zmczJ+DK3hWvVlbq/5h9R rBltd0UmyyCBEYDbuKjtnQWjXnKSKVHgYeESljQyCudykI9HSEWfKEUbdELwjliFHiX5 R1c5oQKuLz4HOcaEBYUI1JW2GyuK341T/FvX+KU5xG0fw2AbW9HaJbVitTtr4NiJxXa5 5q4AnCIK8rkBtfWQn2LGMzZExBxthwiul+yII37cL7Sg6wAu9uJobH2Odj+UM/21Oon9 SlAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699732943; x=1700337743; 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=ux3JnOkDtQtFFiSSmtfisW2bjV3FX8kEYn9loFMjrbU=; b=pFZA8VjHeqnF6xH9/WZGkpJZHBs911PNGrOG+jX/sR+rhkBpIhDG0oPUPmkT8Pu1An iJiTxkNCvijsKc03h/N/SgOBQ+257WOHsaadX0VN5iRVborf6U8+1a6y/Po8vp4Nr2E2 /pTRIBTpwXktX8NjqLFFHOEms054aJcxKJt3Xg3bhOlA1wy6b0yEko2YAq1w8v6H7y/2 CHM1OvKqXbjqEgE9P9cnjpUNh6+GX9xpCFcnNaEGGRo19SQgiTRbnGQ9ejU71VRcmgCA EX73Z3dnhLWndaIuriV+b+3ouarHSC19OEFUt13CAFeVfFnA8hGLw0bOvoQkuJbAq/rE iMvw== X-Gm-Message-State: AOJu0Yz/4ylpI2D3SMFdb33m0783pp00HYNUEDgbrFdOrYbrSI0+k/DU V78HhNGyW22duJVIodX672w= X-Google-Smtp-Source: AGHT+IGtegBIMkINKygpu/FywbEpt/rU4mDYId2ckUhjyq7MIoNRe3aAfbMCExoD7jPrCWGbz7pEqA== X-Received: by 2002:a05:600c:3543:b0:401:b204:3b97 with SMTP id i3-20020a05600c354300b00401b2043b97mr2234114wmq.4.1699732943216; Sat, 11 Nov 2023 12:02:23 -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 r9-20020a05600c320900b00407b93d8085sm8652755wmp.27.2023.11.11.12.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Nov 2023 12:02:22 -0800 (PST) From: Colin Ian King <colin.i.king@gmail.com> To: Roy Pledge <Roy.Pledge@nxp.com>, Li Yang <leoyang.li@nxp.com>, 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: Sat, 11 Nov 2023 20:02:21 +0000 Message-Id: <20231111200221.338612-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-20231111_120228_098266_53EAEF19 X-CRM114-Status: GOOD ( 10.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 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> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 |
[next] soc: fsl: dpio: remove redundant assignment to pointer p
|
expand
|
diff --git a/drivers/soc/fsl/dpio/qbman-portal.c b/drivers/soc/fsl/dpio/qbman-portal.c index 0a3fb6c115f4..c2fa5c981edc 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;
The pointer p is being assigned a value that is never read, the assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/soc/fsl/dpio/qbman-portal.c:662:3: warning: Value stored to 'p' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> --- drivers/soc/fsl/dpio/qbman-portal.c | 1 - 1 file changed, 1 deletion(-)