Skip to contentSkip to conversation

staging: lustre: remove void function return

PATCH New Valentin Vidic 1 participant 1 message Apr 26, 2017 1 message not in the archive Staging

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 staging: lustre: remove void function return

All statements removed from the end of void functions as reported by checkpatch.

---
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(-)
drivers/staging/lustre/lustre/lmv/lmv_obd.c +0 -1
index 09b469243d73..732595125d8a 100644
@@ -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,
drivers/staging/lustre/lustre/lmv/lproc_lmv.c +0 -1
index ff458020b96a..bf25f887062d 100644
@@ -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)
drivers/staging/lustre/lustre/lov/lov_obd.c +0 -1
index b3161fb6d4b5..25f15da6e189 100644
@@ -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);
Signature · 1 line
2.11.0