From 0e63f12a2c773fcd4c40e7caf2ba68deb0c77acc Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 10 May 2012 11:19:05 +0100 Subject: tools/blktap2: fix build errors caused by Werror in vhd_journal_write_entry -O2 -Wall -Werror triggers these warnings: libvhd-journal.c: In function 'vhd_journal_write_entry': libvhd-journal.c:335: warning: statement with no effect Really return the error from vhd_journal_write() to caller. v2: - simplify the patch by just adding the missing return statement Signed-off-by: Olaf Hering Committed-by: Keir Fraser --- tools/blktap2/vhd/lib/libvhd-journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/blktap2') diff --git a/tools/blktap2/vhd/lib/libvhd-journal.c b/tools/blktap2/vhd/lib/libvhd-journal.c index 7edd182dc3..26e26e7c36 100644 --- a/tools/blktap2/vhd/lib/libvhd-journal.c +++ b/tools/blktap2/vhd/lib/libvhd-journal.c @@ -332,7 +332,7 @@ vhd_journal_write_entry(vhd_journal_t *j, vhd_journal_entry_t *entry) err = vhd_journal_write(j, &e, sizeof(vhd_journal_entry_t)); if (err) - err; + return err; return 0; } -- cgit v1.2.3