Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752777AbdCEB3x (ORCPT ); Sat, 4 Mar 2017 20:29:53 -0500 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:36172 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752479AbdCEB27 (ORCPT ); Sat, 4 Mar 2017 20:28:59 -0500 x-originating-ip: 107.180.71.197 From: kys@exchange.microsoft.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, leann.ogasawara@canonical.com, marcelo.cerri@canonical.com Cc: Stephen Hemminger , Stephen Hemminger , "K. Y. Srinivasan" Subject: [PATCH 3/9] vmbus: remove useless return's Date: Sat, 4 Mar 2017 18:27:12 -0700 Message-Id: <1488677238-5150-3-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1488677204-5059-1-git-send-email-kys@exchange.microsoft.com> References: <1488677204-5059-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfHBlwDg9FQIpfTLSx5TV4MDdkUyNNuPriDWi2WuAy1PcMvQD6vUdrqrN4rxS23tMB/a3KeGDCdpBTxbXp+yPWzULlRTnHVVJ2Ad4zCQ6+bvJwej+SOJu cdWXnXHYFUPLiITNtYS9CBGu9w9OJUn/k6V7X2dCgK1PDZuUsGSZ4O6fZJIdPERPh1lN7mjDvpotV+DRHiY7WdP/+qRCUrEMLx3/aqy2hsAK64xl/FRPUa3a +pHcwbM66MmHR86N2QZFrau0NZaVea3+0McVVyhSNBT+TPNQsmptX4NntUVD6+v/7oPQNl5Lrg0R/Iy/jocLZHnSbSIw2E5ZswuGvsbJhTOX7+Exp4+ATOk7 68YbT8GYFQl8eX3Nwr7Py/NKUdNVBVVYlubbwFsjwQVIcnaRjLoztQ8o262i0K6aG1INOOgw84uO6bjbF3O1bTfyixUeUsKu+5ZaApEMzaeBMtDXx5hqYgaO TxJy0NCjH0KqXgjkVORoMgFMXFTHnJI38SrmAJ8dFEJAPtxQTJ0s54aW9IU4xVVCiNcZgbDXTG9sDo7hNhU9iL+S/QAqG1IrujHNNA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2845 Lines: 109 From: Stephen Hemminger No need for empty return at end of void function Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- drivers/hv/hv_balloon.c | 2 -- drivers/hv/hv_fcopy.c | 2 -- drivers/hv/hv_kvp.c | 2 -- drivers/hv/hv_snapshot.c | 2 -- drivers/hv/ring_buffer.c | 2 -- drivers/hv/vmbus_drv.c | 2 -- include/linux/hyperv.h | 2 -- 7 files changed, 0 insertions(+), 14 deletions(-) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index 5fd03e5..f5728de 100644 --- a/drivers/hv/hv_balloon.c +++ b/drivers/hv/hv_balloon.c @@ -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) diff --git a/drivers/hv/hv_fcopy.c b/drivers/hv/hv_fcopy.c index a5596a6..daa75bd 100644 --- a/drivers/hv/hv_fcopy.c +++ b/drivers/hv/hv_fcopy.c @@ -186,8 +186,6 @@ static void fcopy_send_data(struct work_struct *dummy) } } kfree(smsg_out); - - return; } /* diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c index a1adfe2..d3979a6 100644 --- a/drivers/hv/hv_kvp.c +++ b/drivers/hv/hv_kvp.c @@ -483,8 +483,6 @@ static void process_ib_ipinfo(void *in_msg, void *out_msg, int op) } kfree(message); - - return; } /* diff --git a/drivers/hv/hv_snapshot.c b/drivers/hv/hv_snapshot.c index e659d1b..6831efd 100644 --- a/drivers/hv/hv_snapshot.c +++ b/drivers/hv/hv_snapshot.c @@ -212,8 +212,6 @@ static void vss_send_op(void) } kfree(vss_msg); - - return; } static void vss_handle_request(struct work_struct *dummy) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 87799e8..d0ff5b4 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c @@ -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. */ diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index 971ecb7..9ddbf4d 100644 --- a/drivers/hv/vmbus_drv.c +++ b/drivers/hv/vmbus_drv.c @@ -785,8 +785,6 @@ static void vmbus_shutdown(struct device *child_device) if (drv->shutdown) drv->shutdown(dev); - - return; } diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h index 970771a..ee14f23 100644 --- a/include/linux/hyperv.h +++ b/include/linux/hyperv.h @@ -1504,8 +1504,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 -- 1.7.1