lkml.org 
[lkml]   [2000]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Warning cleanup for sch_cbq.c [test3-7]
Date
Hi Alexey,

This fixes the `unused variable' warning in sch_cbq.c when
!CONFIG_NET_CLS_POLICE.

Thanks,
Rusty.
--- working-2.4.0-test3-7/net/sched/sch_cbq.c.~1~ Sun Feb 27 19:26:34 2000
+++ working-2.4.0-test3-7/net/sched/sch_cbq.c Tue Jul 11 17:21:54 2000
@@ -1751,11 +1751,12 @@

static void cbq_put(struct Qdisc *sch, unsigned long arg)
{
- struct cbq_sched_data *q = (struct cbq_sched_data *)sch->data;
struct cbq_class *cl = (struct cbq_class*)arg;

if (--cl->refcnt == 0) {
#ifdef CONFIG_NET_CLS_POLICE
+ struct cbq_sched_data *q = (struct cbq_sched_data *)sch->data;
+
spin_lock_bh(&sch->dev->queue_lock);
if (q->rx_class == cl)
q->rx_class = NULL;
--
Hacking time.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.120 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site