Skip to content

Commit

Permalink
htb: remove two unnecessary assignments
Browse files Browse the repository at this point in the history
remove two unnecessary assignments

we don't need to assign NULL when initialize structure objects.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
----
 net/sched/sch_htb.c |    2 --
 1 file changed, 2 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Changli Gao authored and David S. Miller committed Jun 7, 2010
1 parent fa6ca57 commit f2a0336
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/sched/sch_htb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,6 @@ static const struct Qdisc_class_ops htb_class_ops = {
};

static struct Qdisc_ops htb_qdisc_ops __read_mostly = {
.next = NULL,
.cl_ops = &htb_class_ops,
.id = "htb",
.priv_size = sizeof(struct htb_sched),
Expand All @@ -1561,7 +1560,6 @@ static struct Qdisc_ops htb_qdisc_ops __read_mostly = {
.init = htb_init,
.reset = htb_reset,
.destroy = htb_destroy,
.change = NULL /* htb_change */,
.dump = htb_dump,
.owner = THIS_MODULE,
};
Expand Down

0 comments on commit f2a0336

Please sign in to comment.