From patchwork Wed Jul 25 08:46:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 10543735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 59F3E139A for ; Wed, 25 Jul 2018 09:05:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49C6F29B9B for ; Wed, 25 Jul 2018 09:05:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DA0A29BAD; Wed, 25 Jul 2018 09:05:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A9D5420881 for ; Wed, 25 Jul 2018 09:05:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728640AbeGYKQb (ORCPT ); Wed, 25 Jul 2018 06:16:31 -0400 Received: from condef-02.nifty.com ([202.248.20.67]:26650 "EHLO condef-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728567AbeGYKQb (ORCPT ); Wed, 25 Jul 2018 06:16:31 -0400 X-Greylist: delayed 571 seconds by postgrey-1.27 at vger.kernel.org; Wed, 25 Jul 2018 06:16:30 EDT Received: from conuserg-07.nifty.com ([10.126.8.70])by condef-02.nifty.com with ESMTP id w6P8klaN030936 for ; Wed, 25 Jul 2018 17:46:47 +0900 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id w6P8kG7n029668; Wed, 25 Jul 2018 17:46:16 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com w6P8kG7n029668 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1532508377; bh=uBtlUQnHHGOGzyW1oeCOcKxwS4m+Hiaue1W2j+A+DP4=; h=From:To:Cc:Subject:Date:From; b=1OmXPihq9dUmwyjXPajQecE0NQF/NDcxC4+aQMKTlVQ+zptB32WKdP6IvtIr7mGY3 IRzZhiNtpzTT28URw8+jmZCy4ob2wxadtpsUbLI+grDbZeiPHvxrLYDXoQ4IA55mfK FwrTdefqbzTBR9fCydtxK0+xID/eDKQjixSueXubmU2KPXJiBX8BncJ6x0uJGBpIj3 ioHiBhCStnFylxPbMkvhocxJ7gNYhbOBGRb3WLTUdxTFEsj0iRLGwCh62YpzTRDuWj ushfI1LbBXSGHCXihrBYxvoH9mskLAKP9APJyG2lxwq7nN7T6KycTrvOncEgVFBA2H Q08mmnJyUzTdg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Wolfram Sang Cc: linux-mmc@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH] mmc: tmio: remove unneeded variable in tmio_mmc_start_command() Date: Wed, 25 Jul 2018 17:46:14 +0900 Message-Id: <1532508374-28957-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pass TMIO_MASK_CMD to tmio_mmc_enable_mmc_irqs() directly, and remove the variable, irq_mask. Signed-off-by: Masahiro Yamada Reviewed-by: Wolfram Sang --- drivers/mmc/host/tmio_mmc_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index 3080299..3cb554c 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -309,7 +309,6 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, { struct mmc_data *data = host->data; int c = cmd->opcode; - u32 irq_mask = TMIO_MASK_CMD; switch (mmc_resp_type(cmd)) { case MMC_RSP_NONE: c |= RESP_NONE; break; @@ -349,7 +348,7 @@ static int tmio_mmc_start_command(struct tmio_mmc_host *host, c |= TRANSFER_READ; } - tmio_mmc_enable_mmc_irqs(host, irq_mask); + tmio_mmc_enable_mmc_irqs(host, TMIO_MASK_CMD); /* Fire off the command */ sd_ctrl_write32_as_16_and_16(host, CTL_ARG_REG, cmd->arg);