From patchwork Wed Mar 29 09:52:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9651145 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 D2480602C8 for ; Wed, 29 Mar 2017 09:53:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC11C28421 for ; Wed, 29 Mar 2017 09:53:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0B5A2845B; Wed, 29 Mar 2017 09:53:51 +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 6D0CB2845D for ; Wed, 29 Mar 2017 09:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755073AbdC2Jxu (ORCPT ); Wed, 29 Mar 2017 05:53:50 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:51160 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754941AbdC2Jxt (ORCPT ); Wed, 29 Mar 2017 05:53:49 -0400 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0MK4If-1ctzdB1OZp-001Tcu; Wed, 29 Mar 2017 11:53:00 +0200 From: Arnd Bergmann To: Ben Dooks , Ulf Hansson Cc: Arnd Bergmann , Heiner Kallweit , Sergio Prado , Sylwester Nawrocki , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: host: s3cmci: fix broken conditional expression Date: Wed, 29 Mar 2017 11:52:41 +0200 Message-Id: <20170329095250.2937200-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:JIrid01Gl4/z1PhlQD57XZHNsSbUvLf2sbSYdwio5s/umTdo3Th 2Zo3KuWD7ZjIY6q68ddokq+dpG6C/UFGBePU0TG9Y3KcYYKZpq0k+kYrutv6B3pTzaS+0TK nBDf96d0JIEN7tZ/4ceJSqvFjuqziqsXs4gQlkY3vUQ/hUqGQMJ7sStnsUcHgvqfM1AOc0E ZpjVLxcx+Qe5SvgsMuQ1g== X-UI-Out-Filterresults: notjunk:1; V01:K0:SudY4QKDZ+4=:sL2OvTPiJu4kJfC02bEMGS o8Whn9sfZucqk3JQlp/7hVOJRBdrwfg8yW85qtS9OAdmoAsuo4cTr2R6jHxg6Xkv/UiUeyL1Y 0qxxzYuYoEPRoLSy4IbxbahYUsFHwTrViE+4ur6OfMPFec2h6LxdSAvZk6ZDHvKds8gLA+bEu 7kIFqq/oBnLnAVSR9VdTmbF+jhlLVxVnGGXN4cj7GwSFteqCS3vY7TVA2JgvQLSf0weNEjc7O jKmAy+pJDsl3nUp9mx9bpPH7mF5V1hVDYuc9FbtCht4aghPBetN/AkHOfFDH+f2SbnJLGKG8p 7dL3VUNNpC6GK0N3npks7Q2jQ/2jT4lbV2TeqsdD0RroKvhB6I9kkXixX490Y3UzuMVYBbcz+ 8eKgpZ1MwpSVj9v8ydozRSUVMhvebDpCZfw218VsOqfXqIPXgbHYSGN4zmpigo90x6hn/JEwT 7OnH62GsYI5CDWmy6XLdGLSpZK7N1ePr1L5e/49h7/eM/uV9Dan9iLJmRlbh8clikPsYHMagK /ZJZ/Pg6jANVQ6RJvLPAk3KGs/Obg8vM85wD4Rz8ceS3ovMQj3l7R5uB9p19Wfo0T0TvanJ/B rbf3Xr32/HeN3AUlfBXrngE3PSgrBqCGK/iyRt3X8SIwZN95lEBnkmmhIOnY9+h54ju/Vreus xGkVcgI6s3nArUOjxKUVhBETl+9CAobgEEon1i9rvjrwsImJGqTrhXhg1uQAD675LE+0= 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 DT support introduced a typo that gcc detects when -Wempty-body is enabled: drivers/mmc/host/s3cmci.c: In function 's3cmci_probe_pdata': drivers/mmc/host/s3cmci.c:1543:29: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] if (pdata->wprotect_invert); Clearly the ';' was not intended here, so remove it. Fixes: 4b13f3b290d1 ("mmc: host: s3cmci: allow probing from device tree") Signed-off-by: Arnd Bergmann --- drivers/mmc/host/s3cmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 09eab2120bbd..bbf1fbbc8e2a 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -1540,7 +1540,7 @@ static int s3cmci_probe_pdata(struct s3cmci_host *host) if (pdata->no_detect) mmc->caps |= MMC_CAP_NEEDS_POLL; - if (pdata->wprotect_invert); + if (pdata->wprotect_invert) mmc->caps2 |= MMC_CAP2_RO_ACTIVE_HIGH; if (pdata->detect_invert)