提交 22d61878 编写于 作者: N Nicholas Mc Guire 提交者: Cyrille Pitchen

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: NNicholas Mc Guire <der.herr@hofr.at>
Acked-by: NMarek Vasut <marek.vasut@gmail.com>
Acked-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: NCyrille Pitchen <cyrille.pitchen@atmel.com>
上级 0a5165a8
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册