Messages in this thread Patch in this message | | | From | zhengbin <> | Subject | [PATCH 1/6] mmc: core: use true,false for bool variable | Date | Tue, 24 Dec 2019 15:32:10 +0800 |
| |
Fixes coccicheck warning:
drivers/mmc/core/core.c:60:5-16: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> --- drivers/mmc/core/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index abf8f5e..be06320 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -57,7 +57,7 @@ static const unsigned freqs[] = { 400000, 300000, 200000, 100000 }; * performance cost, and for other reasons may not always be desired. * So we allow it it to be disabled. */ -bool use_spi_crc = 1; +bool use_spi_crc = true; module_param(use_spi_crc, bool, 0);
static int mmc_schedule_delayed_work(struct delayed_work *work, -- 2.7.4
| |