fatfs: use common time_to_tm in fat_time_unix2fat()
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 16 Dec 2009 00:46:57 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:06 +0000 (07:20 -0800)
commit1d81a181e07cec584d1ab142eb921addc81d9b73
tree5f8c19f08d4634c519e13b2a1de1399a9fa6bfaf
parentf4c54fcf3ae6bdc0abf4e777a9499e2581bc8e94
fatfs: use common time_to_tm in fat_time_unix2fat()

It is not necessary to write custom code for convert calendar time to
broken-down time.  time_to_tm() is more generic to do that.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/misc.c