From patchwork Thu Nov 3 06:21:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9410371 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9E05B60722 for ; Thu, 3 Nov 2016 06:23:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F1CA2A4AD for ; Thu, 3 Nov 2016 06:23:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 841302A4DE; Thu, 3 Nov 2016 06:23:24 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 202492A4D3 for ; Thu, 3 Nov 2016 06:23:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754344AbcKCGV4 (ORCPT ); Thu, 3 Nov 2016 02:21:56 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:32999 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754252AbcKCGVy (ORCPT ); Thu, 3 Nov 2016 02:21:54 -0400 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OG101AYWYZOI240@mailout2.samsung.com>; Thu, 03 Nov 2016 15:21:52 +0900 (KST) X-AuditID: cbfee61a-f79916d0000062de-d7-581ad7802179 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id BB.8B.25310.087DA185; Thu, 3 Nov 2016 15:21:52 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OG100J7YZ02LAA0@mmp1.samsung.com>; Thu, 03 Nov 2016 15:21:52 +0900 (KST) From: Jaehoon Chung To: linux-mmc@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, ulf.hansson@linaro.org, robh+dt@kernel.org, krzk@kernel.org, heiko@sntech.de, shawn.lin@rock-chips.com, Jaehoon Chung Subject: [PATCH 08/13] mmc: dw_mmc: remove the unnecessary mmc_data structure Date: Thu, 03 Nov 2016 15:21:30 +0900 Message-id: <20161103062135.10697-9-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.1 In-reply-to: <20161103062135.10697-1-jh80.chung@samsung.com> References: <20161103062135.10697-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42I5/e+xgG7DdakIg4XnVS3mHznHavH/0WtW ixu/2lgtzp/fwG6x6fE1VovLu+awWRz5389o8enBf2aLGef3MVm07j3CbnHnyXpWi+Nrwx14 PDat6mTzuHNtD5vH5iX1Hn9n7Wfx6NuyitFj+7V5zB6fN8kFsEe52WSkJqakFimk5iXnp2Tm pdsqhYa46VooKeQl5qbaKkXo+oYEKSmUJeaUAnlGBmjAwTnAPVhJ3y7BLePpHOWCQxwVvX9/ sjQw/mXrYuTkkBAwkdg2pZcJwhaTuHBvPVCci0NIYCmjxPWv11ghnB+MErfvfGQHqWIT0JHY /u04WIeIgKzEzz8XwDqYBQ4ySfyftJsFJCEs4CtxdMc9MJtFQFViy7LbQJM4OHgFrCW+fJSD 2CYvceHqKbASTgEbiYlHmllBbCGgkluHVzJNYORdwMiwilEitSC5oDgpPdcwL7Vcrzgxt7g0 L10vOT93EyM4Kp5J7WA8uMv9EKMAB6MSD+8HFakIIdbEsuLK3EOMEhzMSiK8u64AhXhTEiur Uovy44tKc1KLDzGaAt01kVlKNDkfGLF5JfGGJuYm5sYGFuaWliZGSuK8jbOfhQsJpCeWpGan phakFsH0MXFwSjUwdpc7hQr7aV1t33l4atG/Z0XtGd9erOhlDVF8G3dUaONUS/ZO8fN6i10u b5bcWvO4z2ne7ScnD5gdtTS+XfefdeaRQDXBM3cbTzGvrVS0msy+h+dWXFHGtlwOT5dHkffn L9j2Uvb9heorp/xSzz24fOJAf6D7ozs7o6O7ejVF+f1atkubCfbaKLEUZyQaajEXFScCAPKq xqOgAgAA X-MTR: 20000000000000000@CPGS 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 Remove the unnecessary mmc_data structure. Instead, cmd->data can be used. Signed-off-by: Jaehoon Chung --- drivers/mmc/host/dw_mmc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index df151c8..bd8c5ea 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -236,7 +236,6 @@ static void mci_send_cmd(struct dw_mci_slot *slot, u32 cmd, u32 arg); static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd) { - struct mmc_data *data; struct dw_mci_slot *slot = mmc_priv(mmc); struct dw_mci *host = slot->host; u32 cmdr; @@ -291,10 +290,9 @@ static u32 dw_mci_prepare_command(struct mmc_host *mmc, struct mmc_command *cmd) if (cmd->flags & MMC_RSP_CRC) cmdr |= SDMMC_CMD_RESP_CRC; - data = cmd->data; - if (data) { + if (cmd->data) { cmdr |= SDMMC_CMD_DAT_EXP; - if (data->flags & MMC_DATA_WRITE) + if (cmd->data->flags & MMC_DATA_WRITE) cmdr |= SDMMC_CMD_DAT_WR; }