summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/ichxrom.c
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@bootlin.com>2018-10-19 09:49:01 +0200
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-11-05 22:24:10 +0100
commit7abe5309de76337920f103d9e34ebd42a479533b (patch)
treeff88d1e140abdbbfa5e29c7404727acf549fbbc3 /drivers/mtd/maps/ichxrom.c
parentmtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code (diff)
downloadlinux-7abe5309de76337920f103d9e34ebd42a479533b.tar.xz
linux-7abe5309de76337920f103d9e34ebd42a479533b.zip
mtd: maps: physmap: Return -ENOMEM directly when info allocation fails
There's no point going to the err_out path since no resources have been allocated yet, just return -ENOMEM directly. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mtd/maps/ichxrom.c')
0 files changed, 0 insertions, 0 deletions