mmc: block: Tag is_rpmb as bool
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 May 2017 09:29:33 +0000 (11:29 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:18 +0000 (15:38 -0500)
The variable is_rpmb is clearly a bool and even assigned true
and false, yet declared as an int.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 829043c48e5d7169d45a04027a787b55133f4cf6)

drivers/mmc/core/block.c

index cbb5798..b07bcc7 100644 (file)
@@ -448,7 +448,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)