Skip to content

Commit

Permalink
mtd: sm_ftl: cosmetic, use bool when possible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Maxim Levitsky authored and David Woodhouse committed Oct 25, 2010
1 parent 9bf7071 commit 334e5f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/mtd/sm_ftl.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


struct ftl_zone {
int initialized;
bool initialized;
int16_t *lba_to_phys_table; /* LBA to physical table */
struct kfifo free_sectors; /* queue of free sectors */
};
Expand All @@ -37,8 +37,8 @@ struct sm_ftl {
int zone_count; /* number of zones */
int max_lba; /* maximum lba in a zone */
int smallpagenand; /* 256 bytes/page nand */
int readonly; /* is FS readonly */
int unstable;
bool readonly; /* is FS readonly */
bool unstable;
int cis_block; /* CIS block location */
int cis_boffset; /* CIS offset in the block */
int cis_page_offset; /* CIS offset in the page */
Expand All @@ -49,7 +49,7 @@ struct sm_ftl {
int cache_zone; /* zone of cached block */
unsigned char *cache_data; /* cached block data */
long unsigned int cache_data_invalid_bitmap;
int cache_clean;
bool cache_clean;
struct work_struct flush_work;
struct timer_list timer;

Expand Down

0 comments on commit 334e5f5

Please sign in to comment.