From patchwork Tue Mar 3 13:13:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 11417977 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7FD84924 for ; Tue, 3 Mar 2020 13:14:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 687DF20857 for ; Tue, 3 Mar 2020 13:14:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728496AbgCCNOb (ORCPT ); Tue, 3 Mar 2020 08:14:31 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:10718 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727872AbgCCNOb (ORCPT ); Tue, 3 Mar 2020 08:14:31 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id EF1357A0F349068C8526; Tue, 3 Mar 2020 21:14:25 +0800 (CST) Received: from localhost (10.173.223.234) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Tue, 3 Mar 2020 21:14:16 +0800 From: YueHaibing To: , , , CC: , Subject: [PATCH -next] dmaengine: fsl-dpaa2-qdma: remove set but not used variable 'dpaa2_qdma' Date: Tue, 3 Mar 2020 21:13:47 +0800 Message-ID: <20200303131347.28392-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.173.223.234] X-CFilter-Loop: Reflected Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c: In function dpaa2_qdma_shutdown: drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c:795:28: warning: variable dpaa2_qdma set but not used [-Wunused-but-set-variable] commit 3e0ca3c38dc2 ("dmaengine: fsl-dpaa2-qdma: Adding shutdown hook") involved this, remove it. Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c index fabbbb9..4ec909e 100644 --- a/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c +++ b/drivers/dma/fsl-dpaa2-qdma/dpaa2-qdma.c @@ -792,13 +792,11 @@ static int dpaa2_qdma_remove(struct fsl_mc_device *ls_dev) static void dpaa2_qdma_shutdown(struct fsl_mc_device *ls_dev) { - struct dpaa2_qdma_engine *dpaa2_qdma; struct dpaa2_qdma_priv *priv; struct device *dev; dev = &ls_dev->dev; priv = dev_get_drvdata(dev); - dpaa2_qdma = priv->dpaa2_qdma; dpdmai_disable(priv->mc_io, 0, ls_dev->mc_handle); dpaa2_dpdmai_dpio_unbind(priv);