[PATCH] mtd: sm_ftl: Remove unused kthread stuff

Ezequiel Garcia elezegarcia at gmail.com
Sat Nov 10 11:35:22 EST 2012


This driver uses workqueues, not kthreads.
Remove kthread header and thread related comment.

Cc: Maxim Levitsky <maximlevitsky at gmail.com>
Signed-off-by: Ezequiel Garcia <elezegarcia at gmail.com>
---
The removed comment seems deprecated, but I can't be entirely sure;
so -of course- feel free to keep that.

 drivers/mtd/sm_ftl.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c
index 8dd6ba5..1ce1128 100644
--- a/drivers/mtd/sm_ftl.c
+++ b/drivers/mtd/sm_ftl.c
@@ -11,7 +11,6 @@
 #include <linux/module.h>
 #include <linux/random.h>
 #include <linux/hdreg.h>
-#include <linux/kthread.h>
 #include <linux/freezer.h>
 #include <linux/sysfs.h>
 #include <linux/bitops.h>
@@ -1066,7 +1065,6 @@ static int sm_write(struct mtd_blktrans_dev *dev,
 	BUG_ON(ftl->readonly);
 	sm_break_offset(ftl, sec_no << 9, &zone_num, &block, &boffset);
 
-	/* No need in flush thread running now */
 	del_timer(&ftl->timer);
 	mutex_lock(&ftl->mutex);
 
-- 
1.7.8.6




More information about the linux-mtd mailing list