Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752665AbdCEB3D (ORCPT ); Sat, 4 Mar 2017 20:29:03 -0500 Received: from a2nlsmtp01-05.prod.iad2.secureserver.net ([198.71.225.49]:56264 "EHLO a2nlsmtp01-05.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbdCEB27 (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 6/9] hyperv: remove unnecessary return variable Date: Sat, 4 Mar 2017 18:27:15 -0700 Message-Id: <1488677238-5150-6-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: MS4wfKjfEU5gu3nHZIYAj5Qkh2tKrRVCW8NYUr5HV6DSFeaLqw3sMmdwgALS3/F6tG8Dj9om/pKyOkNrGbW9naxA3EuR8vN5JjxJzwrI72m7daEYmVyAeE0F c8QRk8nc3kbEG722lQswCRfXKrGr7ZxV8PXnGu/Uz/e165GCU3MduEBEVVr3/dRGN8UoJc5Ee9d8BpIfakpZXZyPrGI2rFc5wISnNXHhw7WV3SBf4Q3APkp9 mgyQj1CD+KA1ubc1yMeuRihFaTwBbucBrz4as6KyETRF3NU/qN64gBf2QyBpbwBe95vbijeWZFEfWp1+gxP69xCNnkV38sMmDK++MOcvZC5NMxctf5LKfXt9 8/U8R4hP2GcMI6eXgRVDAgvaZhti57QZ7T0LIUYAKQfQQ7K6+EXxnBY+8tLRxD/UkIpn8oXfys/KZZuZasj81h+wCnfbL6VGKPTu+WMSbc/a9jo3IOEOdIri S0ArM0OexaeKeHP505rn6AOXuXLJa9z3gzS9Q2cPT4rQsAt6xIPk6Qhhqw5p8T3KB0Lw/PkXxVFFIYq+3yS9XaqzW21rQKVlDzCabA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1161 Lines: 46 From: Stephen Hemminger hv_ringbuffer_read cleanup. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- drivers/hv/ring_buffer.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/hv/ring_buffer.c b/drivers/hv/ring_buffer.c index 52d0556..8a24974 100644 --- a/drivers/hv/ring_buffer.c +++ b/drivers/hv/ring_buffer.c @@ -341,13 +341,11 @@ int hv_ringbuffer_read(struct vmbus_channel *channel, struct vmpacket_descriptor desc; u32 offset; u32 packetlen; - int ret = 0; struct hv_ring_buffer_info *inring_info = &channel->inbound; if (buflen <= 0) return -EINVAL; - *buffer_actual_len = 0; *requestid = 0; @@ -358,7 +356,7 @@ int hv_ringbuffer_read(struct vmbus_channel *channel, * No error is set when there is even no header, drivers are * supposed to analyze buffer_actual_len. */ - return ret; + return 0; } init_cached_read_index(channel); @@ -403,5 +401,5 @@ int hv_ringbuffer_read(struct vmbus_channel *channel, hv_signal_on_read(channel); - return ret; + return 0; } -- 1.7.1