staging/lustre/libcfs: Remove useless returns in void functions
authorOleg Drokin <green@linuxhacker.ru>
Tue, 16 Feb 2016 05:47:09 +0000 (00:47 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:33:11 +0000 (14:33 -0800)
Return at the end of a void function does not serve any particular
purpose and makes checkpatch unhappy, so eliminate them.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/linux/linux-cpu.c
drivers/staging/lustre/lustre/libcfs/linux/linux-crypto.c
drivers/staging/lustre/lustre/libcfs/linux/linux-tracefile.c
drivers/staging/lustre/lustre/libcfs/workitem.c

index 8d6a4ee71b47777cb1720348338b313c926ce5cd..6c3e4481c058a1fbb22c0cd1ef6a1eb35d9438d1 100644 (file)
@@ -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);
 
index 44d1ad6c8280156e925757e8021521ef4b96fbc0..140134d4ad6fffcb4d9d69a38964c1665e3424c2 100644 (file)
@@ -286,6 +286,4 @@ void cfs_crypto_unregister(void)
 {
        if (adler32 == 0)
                cfs_crypto_adler32_unregister();
-
-       return;
 }
index c50e24f5b942da6e8323cf948e056b80e4772d9b..f0880a02f0b4cb21ffae2b90093e7342ff365141 100644 (file)
@@ -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)
index 08c5b1946ac54dd0006ea938b9723e312cfc246c..136bc13e01367a196e234694ea8a96faeec3e274 100644 (file)
@@ -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);