commit | 3e00ed0e984bbec47f5e531bad3cf36885aa5d83 | [log] [tgz] |
---|---|---|
author | Brian Norris <computersforpeace@gmail.com> | Mon Jun 01 16:17:19 2015 -0700 |
committer | Brian Norris <computersforpeace@gmail.com> | Mon Oct 26 14:32:33 2015 -0700 |
tree | f31e2ddcc7b34b98860ff7426458a52dd8b37537 | |
parent | af30c0a00aa0d086a820c2ec75544c07611834d7 [diff] |
mtd: fixup corner case error handling in mtd_device_parse_register() Since commit 3efe41be224c ("mtd: implement common reboot notifier boilerplate"), we might try to register a reboot notifier for an MTD that failed to register. Let's avoid this by making the error path clearer. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Reviewed-by: Richard Weinberger <richard@nod.at>