From 8e80a04c043244eb2fdf0541b5ed86bd53d71736 Mon Sep 17 00:00:00 2001 From: behlendo Date: Tue, 4 Nov 2008 22:42:58 +0000 Subject: [PATCH] Simple ignore the return type which was never used here and cast it to void. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@169 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c --- modules/spl/spl-rwlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/spl/spl-rwlock.c b/modules/spl/spl-rwlock.c index d599e04e18..07fc2aae43 100644 --- a/modules/spl/spl-rwlock.c +++ b/modules/spl/spl-rwlock.c @@ -61,11 +61,11 @@ __rwsem_wake_one_writer_locked(struct rw_semaphore *sem) } /* release a read lock on the semaphore */ -static void +static void __up_read_locked(struct rw_semaphore *sem) { if (--sem->activity == 0 && !list_empty(&sem->wait_list)) - sem = __rwsem_wake_one_writer_locked(sem); + (void)__rwsem_wake_one_writer_locked(sem); } /* trylock for writing -- returns 1 if successful, 0 if contention */