Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: sm_ftl: cosmetic, use bool when possible

I didn't know that kernel allows use of that typedef.

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

authored by

Maxim Levitsky and committed by
David Woodhouse
334e5f56 9bf70717

+4 -4
+4 -4
drivers/mtd/sm_ftl.h
··· 20 20 21 21 22 22 struct ftl_zone { 23 - int initialized; 23 + bool initialized; 24 24 int16_t *lba_to_phys_table; /* LBA to physical table */ 25 25 struct kfifo free_sectors; /* queue of free sectors */ 26 26 }; ··· 37 37 int zone_count; /* number of zones */ 38 38 int max_lba; /* maximum lba in a zone */ 39 39 int smallpagenand; /* 256 bytes/page nand */ 40 - int readonly; /* is FS readonly */ 41 - int unstable; 40 + bool readonly; /* is FS readonly */ 41 + bool unstable; 42 42 int cis_block; /* CIS block location */ 43 43 int cis_boffset; /* CIS offset in the block */ 44 44 int cis_page_offset; /* CIS offset in the page */ ··· 49 49 int cache_zone; /* zone of cached block */ 50 50 unsigned char *cache_data; /* cached block data */ 51 51 long unsigned int cache_data_invalid_bitmap; 52 - int cache_clean; 52 + bool cache_clean; 53 53 struct work_struct flush_work; 54 54 struct timer_list timer; 55 55