mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
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 <[email protected]> Acked-by: Marek Vasut <[email protected]> Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Cyrille Pitchen <[email protected]>
This commit is contained in:
parent
0a5165a83c
commit
22d6187856
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue