Saves a few bytes of binary space. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- common/block.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/block.c b/common/block.c index ad07f8b..ab39a36 100644 --- a/common/block.c +++ b/common/block.c @@ -43,6 +43,9 @@ static int writebuffer_flush(struct block_device *blk) { struct chunk *chunk; + if (!IS_ENABLED(CONFIG_BLOCK_WRITE)) + return 0; + list_for_each_entry(chunk, &blk->buffered_blocks, list) { if (chunk->dirty) { blk->ops->write(blk, chunk->data, chunk->block_start, blk->rdbufsize); -- 1.8.3.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox