block: Do not ignore error in blk->ops->write()
Getting a error from blk->ops->write() is not a very unlikely
event (happens quite often during new board bringup), so we need to
catch and propagate them to upper layers so they can be at least
reported properly. Change the code of all of the callers to bail out
as soon as blk->ops->write() fails.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent a4b7204 commit d83ad9d3123a1ae26aef033eaa70c06952ba1243
@Andrey Smirnov Andrey Smirnov authored on 23 Aug 2018
Sascha Hauer committed on 31 Aug 2018
Showing 1 changed file
View
common/block.c