public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Paul Moore <paul.moore@hp•com>
To: netdev@vger•kernel.org
Subject: [PATCH 2/3] netlabel: Fix compiler warnings in netlabel_mgmt.c
Date: Thu, 30 Oct 2008 13:10:25 -0400	[thread overview]
Message-ID: <20081030171025.11396.86498.stgit@flek.lan> (raw)
In-Reply-To: <20081030170736.11396.46099.stgit@flek.lan>

Fix the compiler warnings below, thanks to Andrew Morton for finding them.

 net/netlabel/netlabel_mgmt.c: In function `netlbl_mgmt_listentry':
 net/netlabel/netlabel_mgmt.c:268: warning: 'ret_val' might be used
  uninitialized in this function

Signed-off-by: Paul Moore <paul.moore@hp•com>
---

 net/netlabel/netlabel_mgmt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netlabel/netlabel_mgmt.c b/net/netlabel/netlabel_mgmt.c
index ee769ec..0a0ef17 100644
--- a/net/netlabel/netlabel_mgmt.c
+++ b/net/netlabel/netlabel_mgmt.c
@@ -265,7 +265,7 @@ add_failure:
 static int netlbl_mgmt_listentry(struct sk_buff *skb,
 				 struct netlbl_dom_map *entry)
 {
-	int ret_val;
+	int ret_val = 0;
 	struct nlattr *nla_a;
 	struct nlattr *nla_b;
 	struct netlbl_af4list *iter4;


  parent reply	other threads:[~2008-10-30 17:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-30 17:10 [GIT PULL] Labeled networking fixes for 2.6.28 Paul Moore
2008-10-30 17:10 ` [PATCH 1/3] cipso: unsigned buf_len cannot be negative Paul Moore
2008-10-30 17:10 ` Paul Moore [this message]
2008-10-30 17:10 ` [PATCH 3/3] netlabel: Fix compilation warnings in net/netlabel/netlabel_addrlist.c Paul Moore
2008-10-31  6:57 ` [GIT PULL] Labeled networking fixes for 2.6.28 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=20081030171025.11396.86498.stgit@flek.lan \
    --to=paul.moore@hp$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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