Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134281pxk; Mon, 21 Sep 2020 06:12:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPLee7b56ZqAh41i0/hRN4yQI6QrIbmO5pA6oInEu9AvrhFhS1tFt4ks2RgyquXzT8YIsB X-Received: by 2002:a50:fd83:: with SMTP id o3mr51211482edt.176.1600693954089; Mon, 21 Sep 2020 06:12:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600693954; cv=none; d=google.com; s=arc-20160816; b=s8LdTnF/gg58qhkFxEohc3HjpdqAl7iRoAetoJidWzG9wxpZBugws+H/1X9qDUptsy abULQR5ggsM4HyaU9GoB/g6hQ0ter2/FI2yNRlm0PaiFh8N71LvZiRdN2M1LhGXsuiFc /oqttxTAmyb+SgqddVjdyU28h8Lh8AO3OW/VQc366pZXNaeNmxXzdiUwNDHwgFg8Sco+ UGrJ1HeZ8mFuppHZLm9qOmGtDBSN+i3WPx5Pof95ZX+bJ/S3H/9cLJvBX1bPFhYrMjzw unj9R8rJIN7OMsSMWbzDgKamM0LYCH7dUFJ5Tkok+4OY1JpxopxuE+5QBlCyguVgthny iPQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xwPwR2HWnclr2GY6BTQU00E4hPsYH6NMV4OEidjjEEg=; b=DuKgisUeqQTWlYndiokKg3A/Lii7RLq8qvuJd2qLfY6xeeld+pa8bqmDGo0taRm5xm bnHbjBfjaNSlZP2ko9A1S5ieUbMKrIP+5XA4yWVJBTPyzS5pZtx3K53TYFDLVI8LmeOx PHqYG8YbZouNYyCqhosA/FmU1c+t7F/JO2aPYF1KzZHYcWIubrl4fiv139LFWGmkXyzD iy87nu48VYnOVZC/FI1w7zH3F5+xsqkGUYmFrID4/wy6dWKD7nliGi4gQNLjdnr7ltke AxBhWB66I6M9gBmrC/CpeFDYPzhsSHM7QhoXJDAn7928mxkxOtH3yqIF0J3/COmmOvvc DrSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bg3si8307771ejb.616.2020.09.21.06.12.09; Mon, 21 Sep 2020 06:12:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727368AbgIUNKd (ORCPT + 99 others); Mon, 21 Sep 2020 09:10:33 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:42916 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727352AbgIUNKc (ORCPT ); Mon, 21 Sep 2020 09:10:32 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 490FC73346CE3917A716; Mon, 21 Sep 2020 21:10:27 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:18 +0800 From: Qinglang Miao To: Ulf Hansson CC: , , Qinglang Miao Subject: [PATCH -next] mmc: rtsx_usb_sdmmc: simplify the return expression of sd_change_phase() Date: Mon, 21 Sep 2020 21:10:42 +0800 Message-ID: <20200921131042.92340-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/mmc/host/rtsx_usb_sdmmc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mmc/host/rtsx_usb_sdmmc.c b/drivers/mmc/host/rtsx_usb_sdmmc.c index 598f49573..5fe4528e2 100644 --- a/drivers/mmc/host/rtsx_usb_sdmmc.c +++ b/drivers/mmc/host/rtsx_usb_sdmmc.c @@ -579,7 +579,6 @@ static void sd_normal_rw(struct rtsx_usb_sdmmc *host, static int sd_change_phase(struct rtsx_usb_sdmmc *host, u8 sample_point, int tx) { struct rtsx_ucr *ucr = host->ucr; - int err; dev_dbg(sdmmc_dev(host), "%s: %s sample_point = %d\n", __func__, tx ? "TX" : "RX", sample_point); @@ -601,11 +600,7 @@ static int sd_change_phase(struct rtsx_usb_sdmmc *host, u8 sample_point, int tx) rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, CLK_DIV, CLK_CHANGE, 0); rtsx_usb_add_cmd(ucr, WRITE_REG_CMD, SD_CFG1, SD_ASYNC_FIFO_RST, 0); - err = rtsx_usb_send_cmd(ucr, MODE_C, 100); - if (err) - return err; - - return 0; + return rtsx_usb_send_cmd(ucr, MODE_C, 100); } static inline u32 get_phase_point(u32 phase_map, unsigned int idx) -- 2.23.0