Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2999420AbdDZL3a (ORCPT ); Wed, 26 Apr 2017 07:29:30 -0400 Received: from mail.CARNet.hr ([161.53.123.6]:58229 "EHLO mail.carnet.hr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1954066AbdDZL3X (ORCPT ); Wed, 26 Apr 2017 07:29:23 -0400 X-Greylist: delayed 2439 seconds by postgrey-1.27 at vger.kernel.org; Wed, 26 Apr 2017 07:29:23 EDT Date: Wed, 26 Apr 2017 12:48:31 +0200 From: Valentin Vidic To: Oleg Drokin , Andreas Dilger , James Simmons , Greg Kroah-Hartman , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Valentin Vidic Message-ID: <20170426104831.yhzffm4x63sfvj7k@gavran.carpriv.carnet.hr> References: <20170425201901.28701-1-Valentin.Vidic@CARNet.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170425201901.28701-1-Valentin.Vidic@CARNet.hr> X-Mailer: git-send-email 2.11.0 User-Agent: NeoMutt/20170306 (1.8.0) X-SA-Exim-Connect-IP: 2001:b68:ff:12::131 Subject: [PATCH v2] staging: lustre: remove void function return X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1848 Lines: 50 All statements removed from the end of void functions as reported by checkpatch. Signed-off-by: Valentin Vidic --- Changes in v2: updated recipient list and subject drivers/staging/lustre/lustre/lmv/lmv_obd.c | 1 - drivers/staging/lustre/lustre/lmv/lproc_lmv.c | 1 - drivers/staging/lustre/lustre/lov/lov_obd.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/staging/lustre/lustre/lmv/lmv_obd.c b/drivers/staging/lustre/lustre/lmv/lmv_obd.c index 09b469243d73..732595125d8a 100644 --- a/drivers/staging/lustre/lustre/lmv/lmv_obd.c +++ b/drivers/staging/lustre/lustre/lmv/lmv_obd.c @@ -373,7 +373,6 @@ static void lmv_del_target(struct lmv_obd *lmv, int index) kfree(lmv->tgts[index]); lmv->tgts[index] = NULL; - return; } static int lmv_add_target(struct obd_device *obd, struct obd_uuid *uuidp, diff --git a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c b/drivers/staging/lustre/lustre/lmv/lproc_lmv.c index ff458020b96a..bf25f887062d 100644 --- a/drivers/staging/lustre/lustre/lmv/lproc_lmv.c +++ b/drivers/staging/lustre/lustre/lmv/lproc_lmv.c @@ -91,7 +91,6 @@ static void *lmv_tgt_seq_start(struct seq_file *p, loff_t *pos) static void lmv_tgt_seq_stop(struct seq_file *p, void *v) { - return; } static void *lmv_tgt_seq_next(struct seq_file *p, void *v, loff_t *pos) diff --git a/drivers/staging/lustre/lustre/lov/lov_obd.c b/drivers/staging/lustre/lustre/lov/lov_obd.c index b3161fb6d4b5..25f15da6e189 100644 --- a/drivers/staging/lustre/lustre/lov/lov_obd.c +++ b/drivers/staging/lustre/lustre/lov/lov_obd.c @@ -68,7 +68,6 @@ static void lov_getref(struct obd_device *obd) mutex_lock(&lov->lov_lock); atomic_inc(&lov->lov_refcount); mutex_unlock(&lov->lov_lock); - return; } static void __lov_del_obd(struct obd_device *obd, struct lov_tgt_desc *tgt); -- 2.11.0