From: Dmitry Eremin-Solenikov Date: Thu, 31 Jan 2013 17:06:34 +0000 (+0400) Subject: mtd: map: BUG() in non handled cases X-Git-Tag: v3.9-rc1~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24dea0c9feccf699749f860fa2f4ccd84d30390d;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed