From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Mahoney Subject: [patch 37/99] btrfs: wait_on_state should return void Date: Wed, 23 Nov 2011 19:36:10 -0500 Message-ID: <20111124004224.102240165@suse.com> References: <20111124003533.395674389@suse.com> To: Btrfs List Return-path: List-ID: wait_on_state has no error conditions and should return void. Its callers already ignore the error code anyway. Signed-off-by: Jeff Mahoney --- fs/btrfs/extent_io.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -621,8 +621,8 @@ search_again: cached_state, GFP_ATOMIC); } -static int wait_on_state(struct extent_io_tree *tree, - struct extent_state *state) +static void wait_on_state(struct extent_io_tree *tree, + struct extent_state *state) __releases(tree->lock) __acquires(tree->lock) { @@ -632,7 +632,6 @@ static int wait_on_state(struct extent_i schedule(); spin_lock(&tree->lock); finish_wait(&state->wq, &wait); - return 0; } /*