From patchwork Tue Oct 14 09:55:23 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarek Poplawski X-Patchwork-Id: 4437 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org 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 D2F8CDE052 for ; Tue, 14 Oct 2008 20:55:33 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755196AbYJNJz2 (ORCPT ); Tue, 14 Oct 2008 05:55:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755181AbYJNJz2 (ORCPT ); Tue, 14 Oct 2008 05:55:28 -0400 Received: from ug-out-1314.google.com ([66.249.92.170]:52657 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754059AbYJNJz1 (ORCPT ); Tue, 14 Oct 2008 05:55:27 -0400 Received: by ug-out-1314.google.com with SMTP id k3so850192ugf.37 for ; Tue, 14 Oct 2008 02:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition :in-reply-to:x-mutt-fcc:user-agent; bh=hAMmnm8Go+MHHdppDNDRh28V0FGjtbziDekK0LTKAgM=; b=SwtdKAo4IA6Az05Ghv4GNPgA2wR4+9erYEyjtBu6c3LaIhV2PI9N7Bi3wRknKpkp5D MgIRGCydQr+h9sbESmSBH6h3UtXkhnj9jOVcnRphrOMEKZUXjzOsR19o8r4hrGoIdwY7 EAXbT0bRrFNQYdU3ZBEbHkKwOYNjOLec3o9Vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:in-reply-to:x-mutt-fcc:user-agent; b=g3abbHPvOVNG6gGr3ViY6+b3GERgqSfzF/g3JAwTpvNmNhbLpcG1QxVra8oSW8i1sU P6Oapii98HccrfZgAlsDJ3ASqQZzosF6d7sTQ+fRJ7aoHa+JKEVXgyv3IHp3jjf6wjy1 czrY3l0sXOTByo5f+tAOzsdgKWSwri+SylPqw= Received: by 10.66.236.13 with SMTP id j13mr4213204ugh.7.1223978126781; Tue, 14 Oct 2008 02:55:26 -0700 (PDT) Received: from ff.dom.local (bv170.internetdsl.tpnet.pl [80.53.205.170]) by mx.google.com with ESMTPS id q40sm1021516ugc.8.2008.10.14.02.55.25 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Oct 2008 02:55:26 -0700 (PDT) Date: Tue, 14 Oct 2008 09:55:23 +0000 From: Jarek Poplawski To: David Miller Cc: netdev@vger.kernel.org Subject: [PATCH 12/14] sch_htb: Fix a compiler warning in htb_enqueue(). Message-ID: <20081014095522.GM10804@ff.dom.local> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Mutt-Fcc: =outbox User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use uninitialized_var(ret) in htb_enqueue() to avoid a compiler warning. Signed-off-by: Jarek Poplawski --- net/sched/sch_htb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/sch_htb.c b/net/sched/sch_htb.c index b2f9e96..c0c83c8 100644 --- a/net/sched/sch_htb.c +++ b/net/sched/sch_htb.c @@ -551,7 +551,7 @@ static inline void htb_deactivate(struct htb_sched *q, struct htb_class *cl) static int htb_enqueue(struct sk_buff *skb, struct Qdisc *sch) { - int ret; + int uninitialized_var(ret); struct htb_sched *q = qdisc_priv(sch); struct htb_class *cl = htb_classify(skb, sch, &ret);