From patchwork Sat Nov 5 02:32:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Soltys X-Patchwork-Id: 123801 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.180.67]) by ozlabs.org (Postfix) with ESMTP id 36A48B71A0 for ; Sat, 5 Nov 2011 13:33:15 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653Ab1KECdM (ORCPT ); Fri, 4 Nov 2011 22:33:12 -0400 Received: from tha.ppgk.com.pl ([77.252.116.179]:15225 "EHLO tha.ppgk.com.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426Ab1KECdJ (ORCPT ); Fri, 4 Nov 2011 22:33:09 -0400 Received: from localhost.ppgk.com.pl (localhost [127.0.0.1]) by tha.ppgk.com.pl (Postfix) with ESMTP id 8B74437626; Sat, 5 Nov 2011 03:33:08 +0100 (CET) X-PPGK-Scanned: amavisd-new 2.6.4 (20090625) at ppgk.com.pl Received: from tha.ppgk.com.pl ([127.0.0.1]) by localhost.ppgk.com.pl (tha.ppgk.com.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XdVv+0zojZr1; Sat, 5 Nov 2011 03:33:07 +0100 (CET) Received: from localhost.localdomain (89-68-135-233.dynamic.chello.pl [89.68.135.233]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by tha.ppgk.com.pl (Postfix) with ESMTPSA id 59CE5375F7; Sat, 5 Nov 2011 03:33:04 +0100 (CET) From: Michal Soltys To: kaber@trash.net Cc: davem@davemloft.net, netdev@vger.kernel.org Subject: [PATCH 04/11] sch_hfsc.c: remove initial check in vttree_get_minvt() (optional) Date: Sat, 5 Nov 2011 03:32:50 +0100 Message-Id: <1320460377-8682-5-git-send-email-soltys@ziu.info> X-Mailer: git-send-email 1.7.7.1 In-Reply-To: <1320460377-8682-1-git-send-email-soltys@ziu.info> References: <1320460377-8682-1-git-send-email-soltys@ziu.info> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Remove initial check in vttree_get_minvt(), as it's implicitly handled by vttree_firstfit(). Also see: http://marc.info/?l=linux-netdev&m=128457329614914&w=2 Signed-off-by: Michal Soltys --- net/sched/sch_hfsc.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c index 710cbda..97d720c 100644 --- a/net/sched/sch_hfsc.c +++ b/net/sched/sch_hfsc.c @@ -307,10 +307,6 @@ vttree_firstfit(struct hfsc_class *cl, u64 cur_time) static struct hfsc_class * vttree_get_minvt(struct hfsc_class *cl, u64 cur_time) { - /* if root-class's cfmin is bigger than cur_time nothing to do */ - if (cl->cl_cfmin > cur_time) - return NULL; - while (cl->level > 0) { cl = vttree_firstfit(cl, cur_time); if (cl == NULL)