Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966905AbdCYDzs (ORCPT ); Fri, 24 Mar 2017 23:55:48 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:59990 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966362AbdCYDzl (ORCPT ); Fri, 24 Mar 2017 23:55:41 -0400 x-originating-ip: 107.180.71.197 From: kys@exchange.microsoft.com To: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, leann.ogasawara@canonical.comi, marcelo.cerri@canonical.com, sthemmin@microsoft.com Cc: "K. Y. Srinivasan" Subject: [PATCH net-next 2/2] netvsc: Properly initialize the return value Date: Fri, 24 Mar 2017 20:54:37 -0700 Message-Id: <1490414077-12617-2-git-send-email-kys@exchange.microsoft.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1490414048-12578-1-git-send-email-kys@exchange.microsoft.com> References: <1490414048-12578-1-git-send-email-kys@exchange.microsoft.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfPsC/6bx8YBdmREo3lZWDRQnI/XNgexXThspsZ8dS1pHJkFXZItAna+YoiTQJDhY0y5IL9U5zOgaqubUT3W5Pa+1I0HTQnRztMjfWY+phlwweRiUyoMA Noulr83Eu6JFGdQFhr5B/fPqDdfWEgs306uGbIDKre/UMpdEU1AzMYbxhOmf93VMnl1dbSbYgp9TLtzyQbgF5Lr5ifaTO/kAAGopNfiS7sFXMY678GTzKwkt wyOwGYrjdUv0WhBTdM1DKATmqUHUkXNLPIXES3fncbdAh8WBtjY+y+sZoJz8W06gFaJ98X21Nu07chSLKQ6R3fpcCM8HkviU8W3yQ+JTKWfCNNS6Fg4cU4dZ AKU0RQXCFbkoe/U67T9fFnp5GvSa7cs4Ct0m641B8Nf9kKPbe5zhxp7rYj5EOWzEEMiEY/AKPgoud6r7mzZ6Zncca7T5lcPFyseRGCDNn3V5nUy4CjlPTOwX jqnE8ij9EcEQp8JafRH8UEi9ENfqaiZ1ZYPeWuDnLoHqqIpw1P6m3ES/z78= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 700 Lines: 24 From: K. Y. Srinivasan Initialize the return value correctly. Signed-off-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index eb7ae79..f830bbb 100644 --- a/drivers/net/hyperv/netvsc_drv.c +++ b/drivers/net/hyperv/netvsc_drv.c @@ -855,7 +855,7 @@ static int netvsc_change_mtu(struct net_device *ndev, int mtu) struct hv_device *hdev = ndevctx->device_ctx; struct netvsc_device_info device_info; bool was_running; - int ret; + int ret = 0; if (!nvdev || nvdev->destroy) return -ENODEV; -- 1.7.1