Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b366e6c9 authored by Oleg Drokin's avatar Oleg Drokin Committed by Greg Kroah-Hartman
Browse files

staging/lustre/libcfs: Remove useless returns in void functions



Return at the end of a void function does not serve any particular
purpose and makes checkpatch unhappy, so eliminate them.

Signed-off-by: default avatarOleg Drokin <green@linuxhacker.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a3fbcb3c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -354,8 +354,6 @@ cfs_cpt_unset_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu)

	if (i >= nr_cpu_ids)
		node_clear(node, *cptab->ctb_nodemask);

	return;
}
EXPORT_SYMBOL(cfs_cpt_unset_cpu);

+0 −2
Original line number Diff line number Diff line
@@ -286,6 +286,4 @@ void cfs_crypto_unregister(void)
{
	if (adler32 == 0)
		cfs_crypto_adler32_unregister();

	return;
}
+0 −2
Original line number Diff line number Diff line
@@ -198,7 +198,6 @@ cfs_set_ptldebug_header(struct ptldebug_header *header,
	header->ph_pid = current->pid;
	header->ph_line_num = msgdata->msg_line;
	header->ph_extern_pid = 0;
	return;
}

static char *
@@ -252,7 +251,6 @@ void cfs_print_to_console(struct ptldebug_header *hdr, int mask,
		       hdr->ph_pid, hdr->ph_extern_pid, file, hdr->ph_line_num,
		       fn, len, buf);
	}
	return;
}

int cfs_trace_max_debug_mb(void)
+0 −3
Original line number Diff line number Diff line
@@ -131,8 +131,6 @@ cfs_wi_exit(struct cfs_wi_sched *sched, cfs_workitem_t *wi)

	wi->wi_scheduled = 1; /* LBUG future schedule attempts */
	spin_unlock(&sched->ws_lock);

	return;
}
EXPORT_SYMBOL(cfs_wi_exit);

@@ -203,7 +201,6 @@ cfs_wi_schedule(struct cfs_wi_sched *sched, cfs_workitem_t *wi)

	LASSERT(!list_empty(&wi->wi_list));
	spin_unlock(&sched->ws_lock);
	return;
}
EXPORT_SYMBOL(cfs_wi_schedule);