From patchwork Wed May 10 08:24:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9719421 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 BD3E960365 for ; Wed, 10 May 2017 08:25:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADC15284E3 for ; Wed, 10 May 2017 08:25:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2AA3284ED; Wed, 10 May 2017 08:25:09 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 61CF0284E3 for ; Wed, 10 May 2017 08:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618AbdEJIZH (ORCPT ); Wed, 10 May 2017 04:25:07 -0400 Received: from mail-qt0-f169.google.com ([209.85.216.169]:36135 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752547AbdEJIZF (ORCPT ); Wed, 10 May 2017 04:25:05 -0400 Received: by mail-qt0-f169.google.com with SMTP id m91so20258522qte.3 for ; Wed, 10 May 2017 01:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bsMYCHUFgCb6LWYvSLs6tg+4SsXf6t0r4L5YwTbhXRw=; b=Yyxj573Oua/jVFI/Dme2u262tfNUpZw/5cCU3Yn+etrSsjWzsxOFqllIrWK7Z6M647 9xOtynb2iuc73L7Ak9RAF1BUJpBzm1AaUG0hOcQXF4T4GjHwB1Sqh1abjukwO7sl43mt D5I8rpcIc7CDzl6ITiM8/sV5WCt9mC11pQoOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bsMYCHUFgCb6LWYvSLs6tg+4SsXf6t0r4L5YwTbhXRw=; b=JYLwc6hVszooaujnmN/iNLefJQ9t41PFiazxfv2kkU8miOREoWXkcgranfk48GNIVd SdKCV5Br0Sc12osQTPKYO6ksGMZKMZ/Xu4XTYgiJRXAl5zHSvl5TPR80apltyzBSIJjC uLrSBxK65Xr+2vtecEr5E9QD/bDsSMihe1u65gjTkULQ+XWw9g9FH/6DyhnS4Qb9X4nV JCvIv+JwHXBQ35B1bKGyQdoxlyhc4q648C3GmISJv14s8Uy/kZzK6hZigcKA6hY/gfei QvRqICpay6pdMVZTWUpxiji3Uot/11vgLswLME8tUotdlM77VYKgoExtPabBvqahUmUw prHg== X-Gm-Message-State: AODbwcA4sCcpCc35Hbw1gx39fdYAkqgb47QufVEnw+x9jp3YUG+ZTtrw buTYNYX7NoQ2nA3S X-Received: by 10.25.195.21 with SMTP id t21mr2303556lff.103.1494404704143; Wed, 10 May 2017 01:25:04 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id 17sm401500ljo.56.2017.05.10.01.25.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 May 2017 01:25:02 -0700 (PDT) From: Linus Walleij To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: linux-block@vger.kernel.org, Jens Axboe , Christoph Hellwig , Arnd Bergmann , Bartlomiej Zolnierkiewicz , Paolo Valente , Linus Walleij Subject: [PATCH 3/5] mmc: block: Tag is_rpmb as bool Date: Wed, 10 May 2017 10:24:16 +0200 Message-Id: <20170510082418.10513-4-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170510082418.10513-1-linus.walleij@linaro.org> References: <20170510082418.10513-1-linus.walleij@linaro.org> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable is_rpmb is clearly a bool and even assigned true and false, yet declared as an int. Signed-off-by: Linus Walleij --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index be782b8d4a0d..323f3790b629 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -443,7 +443,7 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md, struct mmc_request mrq = {}; struct scatterlist sg; int err; - int is_rpmb = false; + bool is_rpmb = false; u32 status = 0; if (!card || !md || !idata)