netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
To: davem@davemloft.net
Cc: Dan Carpenter <dan.carpenter@oracle.com>,
	netdev@vger.kernel.org, nhorman@redhat.com, sassmann@redhat.com,
	jogreene@redhat.com, Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Subject: [net-next 13/13] i40e: fix an uninitialized variable bug
Date: Sat, 14 May 2016 21:57:35 -0700	[thread overview]
Message-ID: <1463288255-1654-14-git-send-email-jeffrey.t.kirsher@intel.com> (raw)
In-Reply-To: <1463288255-1654-1-git-send-email-jeffrey.t.kirsher@intel.com>

From: Dan Carpenter <dan.carpenter@oracle.com>

We removed this initialization but it is required.  Let's put it back.

Fixes: 895106a577c4 ('i40e: trivial fixes')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
---
 drivers/net/ethernet/intel/i40e/i40e_hmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/intel/i40e/i40e_hmc.c b/drivers/net/ethernet/intel/i40e/i40e_hmc.c
index 5ebe12d..a7c7b1d 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_hmc.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_hmc.c
@@ -49,7 +49,7 @@ i40e_status i40e_add_sd_table_entry(struct i40e_hw *hw,
 	struct i40e_hmc_sd_entry *sd_entry;
 	bool dma_mem_alloc_done = false;
 	struct i40e_dma_mem mem;
-	i40e_status ret_code;
+	i40e_status ret_code = I40E_SUCCESS;
 	u64 alloc_len;
 
 	if (NULL == hmc_info->sd_table.sd_entry) {
-- 
2.5.5

  parent reply	other threads:[~2016-05-15  4:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-15  4:57 [net-next 00/13][pull request] 40GbE Intel Wired LAN Driver Updates 2016-05-14 Jeff Kirsher
2016-05-15  4:57 ` [net-next 01/13] i40e: Add support for disabling all link and change bits needed for PHY interactions Jeff Kirsher
2016-05-15  4:57 ` [net-next 02/13] i40e: Add allmulti support for the VF Jeff Kirsher
2016-05-15  4:57 ` [net-next 03/13] i40e: Implement the API function for aq_set_switch_config Jeff Kirsher
2016-05-15  4:57 ` [net-next 04/13] i40e: Add vf-true-promisc-support priv flag Jeff Kirsher
2016-05-15  4:57 ` [net-next 05/13] i40e: lie to the VF Jeff Kirsher
2016-05-15  4:57 ` [net-next 06/13] i40e: Refactor ethtool get_settings Jeff Kirsher
2016-05-15  4:57 ` [net-next 07/13] i40e: change Rx hang message into a WARN_ONCE Jeff Kirsher
2016-05-15  4:57 ` [net-next 08/13] i40e: Correct UDP packet header for non_tunnel-ipv6 Jeff Kirsher
2016-05-15  4:57 ` [net-next 09/13] i40e: set context to use VSI RSS LUT for SR-IOV Jeff Kirsher
2016-05-15  4:57 ` [net-next 10/13] i40e/i40evf: properly report Rx packet hash Jeff Kirsher
2016-05-15  4:57 ` [net-next 11/13] i40e: don't add broadcast filter for VFs Jeff Kirsher
2016-05-15  4:57 ` [net-next 12/13] i40e: Bump version from 1.5.10 to 1.5.16 Jeff Kirsher
2016-05-15  4:57 ` Jeff Kirsher [this message]
2016-05-15 17:47 ` [net-next 00/13][pull request] 40GbE Intel Wired LAN Driver Updates 2016-05-14 David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1463288255-1654-14-git-send-email-jeffrey.t.kirsher@intel.com \
    --to=jeffrey.t.kirsher@intel.com \
    --cc=dan.carpenter@oracle.com \
    --cc=davem@davemloft.net \
    --cc=jogreene@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@redhat.com \
    --cc=sassmann@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).