vmbus: remove useless return's
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 5 Mar 2017 01:27:12 +0000 (18:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:48 +0000 (15:10 +0900)
No need for empty return at end of void function

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hv/hv_balloon.c
drivers/hv/hv_fcopy.c
drivers/hv/hv_kvp.c
drivers/hv/hv_snapshot.c
drivers/hv/ring_buffer.c
drivers/hv/vmbus_drv.c
include/linux/hyperv.h

index 5fd03e5..f5728de 100644 (file)
@@ -722,8 +722,6 @@ static void hv_mem_hot_add(unsigned long start, unsigned long size,
                                                    5*HZ);
                post_status(&dm_device);
        }
-
-       return;
 }
 
 static void hv_online_page(struct page *pg)
index 9aee601..3ce7559 100644 (file)
@@ -187,8 +187,6 @@ static void fcopy_send_data(struct work_struct *dummy)
                }
        }
        kfree(smsg_out);
-
-       return;
 }
 
 /*
index de26371..a65b7f8 100644 (file)
@@ -484,8 +484,6 @@ kvp_send_key(struct work_struct *dummy)
        }
 
        kfree(message);
-
-       return;
 }
 
 /*
index bcc03f0..216d022 100644 (file)
@@ -213,8 +213,6 @@ static void vss_send_op(void)
        }
 
        kfree(vss_msg);
-
-       return;
 }
 
 static void vss_handle_request(struct work_struct *dummy)
index 87799e8..d0ff5b4 100644 (file)
@@ -73,8 +73,6 @@ static void hv_signal_on_write(u32 old_write, struct vmbus_channel *channel)
         */
        if (old_write == READ_ONCE(rbi->ring_buffer->read_index))
                vmbus_setevent(channel);
-
-       return;
 }
 
 /* Get the next write location for the specified ring buffer. */
index da6b59b..5ca5004 100644 (file)
@@ -787,8 +787,6 @@ static void vmbus_shutdown(struct device *child_device)
 
        if (drv->shutdown)
                drv->shutdown(dev);
-
-       return;
 }
 
 
index 62bbf3c..2b1ed66 100644 (file)
@@ -1500,8 +1500,6 @@ static inline  void hv_signal_on_read(struct vmbus_channel *channel)
        cached_write_sz = hv_get_cached_bytes_to_write(rbi);
        if (cached_write_sz < pending_sz)
                vmbus_setevent(channel);
-
-       return;
 }
 
 static inline void