mtd: spi-nor: intel: use true/false for boolean
authorNicholas Mc Guire <der.herr@hofr.at>
Mon, 13 Feb 2017 08:13:56 +0000 (09:13 +0100)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Tue, 7 Mar 2017 21:01:45 +0000 (22:01 +0100)
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@hofr.at>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
drivers/mtd/spi-nor/intel-spi.c

index a10f6027b38690aa6d5c599de77b2f82699377ff..e43ce63881a6fb161eb928b301a03429637b70ce 100644 (file)
@@ -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)