From patchwork Mon Dec 12 19:51:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 9471155 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 84B0960476 for ; Mon, 12 Dec 2016 19:51:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E299284BD for ; Mon, 12 Dec 2016 19:51:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63441284EF; Mon, 12 Dec 2016 19:51:55 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 246A0284BD for ; Mon, 12 Dec 2016 19:51:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752656AbcLLTvx (ORCPT ); Mon, 12 Dec 2016 14:51:53 -0500 Received: from www.zeus03.de ([194.117.254.33]:41926 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752492AbcLLTvu (ORCPT ); Mon, 12 Dec 2016 14:51:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:in-reply-to:references; s=k1; bh=dKzggQkdu3cI+wziRKTdWQtXlKVvx/GZL398J+BKr04=; b=vk6ccEXutMeN j1v/FDOv/92IvzX5INRHr9gS4y7yjQExPJSuqGBxjLuu/KSmFavMdE5wvnyf7QTm DTYFQ+KhYvdlliscMAt/k2E0giV69m+YCYt36U7i4/RwwipXtzK3J3Czp+SiPjZM vUVoSA4CpVo3HkkSjEaDPnUlh6VSlMY= Received: (qmail 2313 invoked from network); 12 Dec 2016 20:51:48 +0100 Received: from p54b33eed.dip0.t-ipconnect.de (HELO localhost) (l3s3148p1@84.179.62.237) by mail.zeus03.de with ESMTPSA (ECDHE-RSA-AES256-GCM-SHA384 encrypted, authenticated); 12 Dec 2016 20:51:48 +0100 From: Wolfram Sang To: linux-mmc@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Simon Horman , Wolfram Sang Subject: [PATCH 6/9] mmc: sh_mobile_sdhi: remove superfluous check in SCC error check Date: Mon, 12 Dec 2016 20:51:25 +0100 Message-Id: <20161212195128.16633-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161212195128.16633-1-wsa+renesas@sang-engineering.com> References: <20161212195128.16633-1-wsa+renesas@sang-engineering.com> 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 The function will only be available if SDR104 was detected in probe, so no need to check in the function itself again. Signed-off-by: Wolfram Sang --- drivers/mmc/host/sh_mobile_sdhi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 22bedbea8ec502..2bd17890ec4b77 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c @@ -433,12 +433,7 @@ static int sh_mobile_sdhi_select_tuning(struct tmio_mmc_host *host) static bool sh_mobile_sdhi_check_scc_error(struct tmio_mmc_host *host) { - struct sh_mobile_sdhi *priv; - - if (!(host->mmc->caps & MMC_CAP_UHS_SDR104)) - return 0; - - priv = host_to_priv(host); + struct sh_mobile_sdhi *priv = host_to_priv(host); /* Check SCC error */ if (sd_scc_read32(host, priv, SH_MOBILE_SDHI_SCC_RVSCNTL) &