Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea18fd95 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller
Browse files

mqprio: cleanups



* make qdisc_ops local
* add sparse annotation about expected unlock/unlock in dump_class_stats
* fix indentation

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ada440e3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -312,6 +312,8 @@ static int mqprio_dump_class(struct Qdisc *sch, unsigned long cl,

static int mqprio_dump_class_stats(struct Qdisc *sch, unsigned long cl,
				   struct gnet_dump *d)
	__releases(d->lock)
	__acquires(d->lock)
{
	struct net_device *dev = qdisc_dev(sch);

@@ -389,7 +391,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = {
	.dump_stats	= mqprio_dump_class_stats,
};

struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {
static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {
	.cl_ops		= &mqprio_class_ops,
	.id		= "mqprio",
	.priv_size	= sizeof(struct mqprio_sched),