Skip to content

Commit

Permalink
netlabel: Fix compiler warnings in netlabel_mgmt.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pcmoore committed Oct 29, 2008
1 parent 00af5c6 commit f8a0247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netlabel/netlabel_mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static int netlbl_mgmt_add_common(struct genl_info *info,
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;
Expand Down

0 comments on commit f8a0247

Please sign in to comment.