linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Maxim Levitsky <maximlevitsky@gmail.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mtd@lists.infradead.org,
	Maxim Levitsky <maximlevitsky@gmail.com>,
	Maciej Rutecki <maciej.rutecki@gmail.com>
Subject: [PATCH 5/5] mtd: sm_ftl: cosmetic, use bool when possible
Date: Fri, 15 Oct 2010 17:20:47 +0200	[thread overview]
Message-ID: <1287156047-17439-6-git-send-email-maximlevitsky@gmail.com> (raw)
In-Reply-To: <1287156047-17439-1-git-send-email-maximlevitsky@gmail.com>

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

Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
---
 drivers/mtd/sm_ftl.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/sm_ftl.h b/drivers/mtd/sm_ftl.h
index e30e48e..43bb730 100644
--- a/drivers/mtd/sm_ftl.h
+++ b/drivers/mtd/sm_ftl.h
@@ -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 */
 };
@@ -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 */
@@ -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;
 
-- 
1.7.1

  parent reply	other threads:[~2010-10-15 15:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-15 15:20 [MTD] My updates [RESEND] Maxim Levitsky
2010-10-15 15:20 ` [PATCH 1/5] MTD: blktrans: Allow to unload the mtdtrans module if its block devices aren't open Maxim Levitsky
2010-10-15 15:20 ` [PATCH 2/5] MTD: blktrans: kill the BKL Maxim Levitsky
2010-10-16  5:12   ` Wolfram Sang
2010-10-16 22:46     ` Maxim Levitsky
2010-10-17  8:51       ` Artem Bityutskiy
2010-10-15 15:20 ` [PATCH 3/5] MTD: blktrans: fix a race vs kthread_stop Maxim Levitsky
2010-10-25  0:31   ` David Woodhouse
2010-10-25  1:44     ` Maxim Levitsky
2010-10-15 15:20 ` [PATCH 4/5] MTD: r852: remove useless pci powerup/down from suspend/resume routines Maxim Levitsky
2010-10-15 15:20 ` Maxim Levitsky [this message]
2010-10-17 10:15 ` [MTD] My updates [RESEND] Artem Bityutskiy
2010-10-17 10:22 ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1287156047-17439-6-git-send-email-maximlevitsky@gmail.com \
    --to=maximlevitsky@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=maciej.rutecki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).