mtd: remove dead non-char logic
authorBrian Norris <computersforpeace@gmail.com>
Tue, 22 Jul 2014 02:06:47 +0000 (19:06 -0700)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:08 +0000 (11:53 -0700)
commit5e47212831ac565993d21ebd36216d98f2b58f30
tree202201794a269f245b66bbdb0bbb45fa613039a8
parentf7f0d358f5f2f1133b5a14337028ddab848cd74e
mtd: remove dead non-char logic

MTD used to allow compiling out character device support. This was
dropped in the following commit, but some of the accompanying logic was
never dropped:

  commit 660685d9d1b4730f0b5ca97fa95f272f99c63bce
  Author: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
  Date:   Thu Mar 14 13:27:40 2013 +0200

      mtd: merge mtdchar module with mtdcore

The weird logic was flagged by Coverity.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/mtdcore.c