mtd: simplify get_mtd_device_nm function
authorWanlong Gao <wanlong.gao@gmail.com>
Tue, 17 May 2011 14:36:18 +0000 (22:36 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 25 May 2011 01:05:49 +0000 (02:05 +0100)
commit52534f2dba5d033c0c33e515faa2767d7e8e986a
treec4d78a663b4c6e3fcc0f912e3be0860984fab947
parent7c802fbd541448accec7bbc0e72ef38693a29593
mtd: simplify get_mtd_device_nm function

'get_mtd_device_nm()' has a piece of code which equivalent to what
'__get_mtd_device()' does - remove this duplicated code and use
''__get_mtd_device()' instead.

Artem: changed commit message.
Artem: while on it, remove an unnecessary extra empty line

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdcore.c