[MTD] Fix error checking after get_mtd_device() in get_sb_mtd functions
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 1 Jun 2007 18:21:59 +0000 (19:21 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 1 Jun 2007 18:21:59 +0000 (19:21 +0100)
commit718ea8361b15aec5f4cb559d63ba34bc5a58d8f9
tree53abc2197122594996aefc19868ba3630975c613
parentea55d30798ac206c9f584ac264b6b8eb093d237a
[MTD] Fix error checking after get_mtd_device() in get_sb_mtd functions

It returns ERR_PTR(foo) on error, not just NULL.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdsuper.c