Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22d61878 authored by Nicholas Mc Guire's avatar Nicholas Mc Guire Committed by Cyrille Pitchen
Browse files

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: default avatarNicholas Mc Guire <der.herr@hofr.at>
Acked-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@atmel.com>
parent 0a5165a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)