]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: block: Tag is_rpmb as bool
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 18 May 2017 09:29:33 +0000 (11:29 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:18 +0000 (10:30 +0200)
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>
drivers/mmc/core/block.c

index 5f29b56252161cff7224e643e8f2213078d3ba0f..f4dab1dfd2ab74d4b0285e17cb1bb63699b789b7 100644 (file)
@@ -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)