mtd: maps: ceiva: do not return random numbers
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 9 Feb 2010 11:42:39 +0000 (13:42 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2010 12:50:45 +0000 (12:50 +0000)
commit9a5dea7b1046510fdcc81c523405494fd07ec303
treee0fdb9c4abd2fb40c54b10862446bbd19df8fb06
parentdad0db318b391ddb9845ac5e52044f921219bf69
mtd: maps: ceiva: do not return random numbers

When machine_is_ceiva() returns zero, 'clps_setup_flash()' returns a
value of an unitialized variable. Fix this.

Spotted by David Binderman.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/maps/ceiva.c