From: Andreas Ruprecht Date: Sun, 23 Nov 2014 13:37:53 +0000 (+0100) Subject: staging: lustre: ldlm: Fix warning about unneeded return statement X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fd0c587aa91d202b22184d96daa1edeeebcde718;p=linux-beck.git staging: lustre: ldlm: Fix warning about unneeded return statement checkpatch complains about an unneeded return statement in the function search_granted_lock(), which is removed by this patch. Signed-off-by: Andreas Ruprecht Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c index d36f865c8aa2..8191005464b1 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lock.c @@ -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; } /**