mtd: physmap_of: fix incorrect check
authorvimal singh <vimal.newwork@gmail.com>
Thu, 30 Jul 2009 15:24:27 +0000 (20:54 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:39:50 +0000 (09:39 +0100)
commitad4fbc7921bd7cca108ecc1340a014e91ecc8536
tree22bbcfe99366a67357cec464e9b3332cd4cd5d95
parent9a73290d7735c0671d1d2379ed40025db8b773d0
mtd: physmap_of: fix incorrect check

This patch fixes a spelling error that has resulted from copy and
pasting. The location of the error was found using a semantic patch
but the semantic patch was not trying to find these errors. After
looking things over it seemed logical that this change was needed.

The patch also makes sure mtd_list is not being freed if it has not
been allocated

Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/physmap_of.c