From patchwork Mon Oct 19 15:57:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11844661 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=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,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 877C2C433DF for ; Mon, 19 Oct 2020 16:00:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2266F222B9 for ; Mon, 19 Oct 2020 16:00:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603123205; bh=YbT4xVqbiqIk3+wEZ89dSG3aONU5hUzF61bG7fyN8VU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=BUW74IQ0xGrUH80rvyFcvxbhglzawPVo+A/NQI4tVq73YV39GvhVCuC6ubgyMUzEo dh7+LM5jz2c0L7Km19x9qZRigpwWNo3ZjXbt5+VF5JAi01xgL1btHoeRiXwe0pxll9 azeQt5FU60mewEmerXe/5Qz74MkR7IxboCVMRM24= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730498AbgJSQAE (ORCPT ); Mon, 19 Oct 2020 12:00:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:38842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730496AbgJSQAE (ORCPT ); Mon, 19 Oct 2020 12:00:04 -0400 Received: from localhost.localdomain (unknown [194.230.155.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8F6BD222C2; Mon, 19 Oct 2020 16:00:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603123203; bh=YbT4xVqbiqIk3+wEZ89dSG3aONU5hUzF61bG7fyN8VU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nm1l8fbpvyqmiSmCl9ZvOV5SwxGHflWu7G5+/5W72WOm9qmKGhaZUxK7e4ev/KHe0 JleqRGEmmqbNcrxu5CzksWlfhlx5200TJ6qwvMhYgaL3e7t6hSfkWIN3OgNUd72H8T lY45gPgfPIj2+9gdcboVCqb0c/7XAz3kMGx4WNw0= From: Krzysztof Kozlowski To: Vinod Koul , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kbuild-all@lists.01.org, Andrew Morton , Linux Memory Management List , Geert Uytterhoeven , Arnd Bergmann , Krzysztof Kozlowski Subject: [PATCH 2/2] dmaengine: ppc4xx: remove xor_hw_desc assignment without reading Date: Mon, 19 Oct 2020 17:57:56 +0200 Message-Id: <20201019155756.21445-2-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201019155756.21445-1-krzk@kernel.org> References: <20201019155756.21445-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org The xor_hw_desc local variable is assigned but never read: drivers/dma/ppc4xx/adma.c: In function ‘ppc440spe_desc_set_src_mult’: drivers/dma/ppc4xx/adma.c:562:17: warning: variable ‘xor_hw_desc’ set but not used [-Wunused-but-set-variable] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/ppc4xx/adma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index fea598550582..df7704053d91 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c @@ -559,7 +559,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, int sg_index, unsigned char mult_value) { struct dma_cdb *dma_hw_desc; - struct xor_cb *xor_hw_desc; u32 *psgu; switch (chan->device->id) { @@ -590,7 +589,6 @@ static void ppc440spe_desc_set_src_mult(struct ppc440spe_adma_desc_slot *desc, *psgu |= cpu_to_le32(mult_value << mult_index); break; case PPC440SPE_XOR_ID: - xor_hw_desc = desc->hw_desc; break; default: BUG();