From patchwork Sat Sep 5 00:55:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brian Haley X-Patchwork-Id: 33021 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@bilbo.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id 9FB75B6EDF for ; Sat, 5 Sep 2009 10:56:53 +1000 (EST) Received: by ozlabs.org (Postfix) id 8EEEADDD0B; Sat, 5 Sep 2009 10:56:53 +1000 (EST) Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 2E41EDDD01 for ; Sat, 5 Sep 2009 10:56:53 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934108AbZIEA4F (ORCPT ); Fri, 4 Sep 2009 20:56:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933844AbZIEA4F (ORCPT ); Fri, 4 Sep 2009 20:56:05 -0400 Received: from g4t0016.houston.hp.com ([15.201.24.19]:26069 "EHLO g4t0016.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933786AbZIEA4E (ORCPT ); Fri, 4 Sep 2009 20:56:04 -0400 Received: from g4t0018.houston.hp.com (g4t0018.houston.hp.com [16.234.32.27]) by g4t0016.houston.hp.com (Postfix) with ESMTP id 4EF79140F8; Sat, 5 Sep 2009 00:56:06 +0000 (UTC) Received: from [16.1.1.100] (squirrel.fc.hp.com [15.11.146.57]) by g4t0018.houston.hp.com (Postfix) with ESMTP id 77AB010022; Sat, 5 Sep 2009 00:56:05 +0000 (UTC) Message-ID: <4AA1B712.6060900@hp.com> Date: Fri, 04 Sep 2009 20:55:46 -0400 From: Brian Haley Organization: Open Source and Linux Organization User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: David Miller CC: "netdev@vger.kernel.org" Subject: [PATCH] netlink: silence compiler warning Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org CC net/netlink/genetlink.o net/netlink/genetlink.c: In function ‘genl_register_mc_group’: net/netlink/genetlink.c:139: warning: ‘err’ may be used uninitialized in this function From following the code 'err' is initialized, but set it to zero to silence the warning. Signed-off-by: Brian Haley --- the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index 575c643..66f6ba0 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c @@ -136,7 +136,7 @@ int genl_register_mc_group(struct genl_family *family, { int id; unsigned long *new_groups; - int err; + int err = 0; BUG_ON(grp->name[0] == '\0'); -- To unsubscribe from this list: send the line "unsubscribe netdev" in