Skip to contentSkip to conversation

Staging: lustre: console: Remove irrelevant return statement

PATCH New Shivani Bhardwaj 1 participant 1 message Oct 29, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Staging: lustre: console: Remove irrelevant return statement

Remove return statement from the function lstcon_group_ndlink_move() as its return type is void.
Fix checkpatch WARNING: void function return statements are not generally useful

---
 drivers/staging/lustre/lnet/selftest/console.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/lustre/lnet/selftest/console.c +0 -2
index 9748a09..b1eceb4 100644
@@ -318,8 +318,6 @@ lstcon_group_ndlink_move(lstcon_group_t *old,
 	list_add_tail(&ndl->ndl_hlink, &new->grp_ndl_hash[idx]);
 	list_add_tail(&ndl->ndl_link, &new->grp_ndl_list);
 	new->grp_nnode++;
-
-	return;
 }
 
 static void
Signature · 1 line
2.1.0