Dmitry Eremin-Solenikov 24dea0c9fe mtd: map: BUG() in non handled cases
Several map-related functions look like a serie of ifs, checking
widths of map. Those functions do not have any handling for default
case. Instead of fiddling with uninitialized_var in those functions,
let's just add a (correct) BUG() to the default case on those maps. This
will also allow us to catch potential errors in maps setup in future.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2013-02-22 09:22:19 +02:00
..
2012-07-06 18:18:18 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2010-10-24 23:27:24 +01:00
2013-02-22 09:22:19 +02:00
2010-08-08 20:58:20 +01:00
2010-08-08 20:58:20 +01:00
2009-01-05 13:55:58 +01:00
2010-01-13 09:04:53 +00:00
2009-01-05 13:55:54 +01:00
2012-11-15 15:37:50 +02:00
2011-03-31 11:26:23 -03:00