[PATCH] mtd: map: BUG() in non handled cases

Artem Bityutskiy dedekind1 at gmail.com
Mon Feb 4 05:32:36 EST 2013


On Thu, 2013-01-31 at 21:06 +0400, Dmitry Eremin-Solenikov wrote:
> 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 at mentor.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-mtd/attachments/20130204/54de6f34/attachment.sig>


More information about the linux-mtd mailing list