summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/Kconfig
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>2013-01-31 21:06:34 +0400
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2013-02-22 09:22:19 +0200
commit24dea0c9feccf699749f860fa2f4ccd84d30390d (patch)
treed2adf3a0478ae150b46462da4293876222d6d8ab /drivers/mtd/Kconfig
parentbe0638d9e4795254e28e39eff61e38f47d240fd2 (diff)
downloadlinux-24dea0c9feccf699749f860fa2f4ccd84d30390d.tar.gz
linux-24dea0c9feccf699749f860fa2f4ccd84d30390d.tar.bz2
linux-24dea0c9feccf699749f860fa2f4ccd84d30390d.zip
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>
Diffstat (limited to 'drivers/mtd/Kconfig')
0 files changed, 0 insertions, 0 deletions