mtd: spi-nor: intel: use true/false for boolean

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 10 19:59:13 PDT 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=22d61878565916a0f0ff4babe9207365d0dc8bd6
Commit:     22d61878565916a0f0ff4babe9207365d0dc8bd6
Parent:     0a5165a83c624cddb3dfa227a9324acac9ec413c
Author:     Nicholas Mc Guire <der.herr at hofr.at>
AuthorDate: Mon Feb 13 09:13:56 2017 +0100
Committer:  Cyrille Pitchen <cyrille.pitchen at atmel.com>
CommitDate: Tue Mar 7 22:01:45 2017 +0100

    mtd: spi-nor: intel: use true/false for boolean
    
    writeable in struct intel_spi is a boolean and assignment should be to
    true/false not 1/0 as recommended by boolinit.cocci.
    
    Signed-off-by: Nicholas Mc Guire <der.herr at hofr.at>
    Acked-by: Marek Vasut <marek.vasut at gmail.com>
    Acked-by: Mika Westerberg <mika.westerberg at linux.intel.com>
    Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
---
 drivers/mtd/spi-nor/intel-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c
index a10f602..e43ce63 100644
--- a/drivers/mtd/spi-nor/intel-spi.c
+++ b/drivers/mtd/spi-nor/intel-spi.c
@@ -704,7 +704,7 @@ static void intel_spi_fill_partition(struct intel_spi *ispi,
 		 * whole partition read-only to be on the safe side.
 		 */
 		if (intel_spi_is_protected(ispi, base, limit))
-			ispi->writeable = 0;
+			ispi->writeable = false;
 
 		end = (limit << 12) + 4096;
 		if (end > part->size)



More information about the linux-mtd-cvs mailing list