staging: lustre: ldlm: Fix warning about unneeded return statement
authorAndreas Ruprecht <rupran@einserver.de>
Sun, 23 Nov 2014 13:37:53 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 20:50:27 +0000 (12:50 -0800)
checkpatch complains about an unneeded return statement in the
function search_granted_lock(), which is removed by this patch.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_lock.c

index d36f865..8191005 100644 (file)
@@ -982,7 +982,6 @@ static void search_granted_lock(struct list_head *queue,
        prev->res_link = queue->prev;
        prev->mode_link = &req->l_sl_mode;
        prev->policy_link = &req->l_sl_policy;
-       return;
 }
 
 /**