Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
f04b34e0
Commit
f04b34e0
authored
Aug 22, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PKT_SCHED]: Fix unused label warning in ingress_init().
Signed-off-by:
David S. Miller
<
davem@redhat.com
>
parent
c8a38b29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
net/sched/sch_ingress.c
net/sched/sch_ingress.c
+2
-4
No files found.
net/sched/sch_ingress.c
View file @
f04b34e0
...
@@ -283,7 +283,7 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
...
@@ -283,7 +283,7 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
#ifndef CONFIG_NET_CLS_ACT
#ifndef CONFIG_NET_CLS_ACT
#ifndef CONFIG_NETFILTER
#ifndef CONFIG_NETFILTER
printk
(
"You MUST compile classifier actions into the kernel
\n
"
);
printk
(
"You MUST compile classifier actions into the kernel
\n
"
);
goto
error
;
return
-
EINVAL
;
#else
#else
printk
(
"Ingress scheduler: Classifier actions prefered over netfilter
\n
"
);
printk
(
"Ingress scheduler: Classifier actions prefered over netfilter
\n
"
);
#endif
#endif
...
@@ -294,7 +294,7 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
...
@@ -294,7 +294,7 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
if
(
!
nf_registered
)
{
if
(
!
nf_registered
)
{
if
(
nf_register_hook
(
&
ing_ops
)
<
0
)
{
if
(
nf_register_hook
(
&
ing_ops
)
<
0
)
{
printk
(
"ingress qdisc registration error
\n
"
);
printk
(
"ingress qdisc registration error
\n
"
);
goto
error
;
return
-
EINVAL
;
}
}
nf_registered
++
;
nf_registered
++
;
}
}
...
@@ -304,8 +304,6 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
...
@@ -304,8 +304,6 @@ int ingress_init(struct Qdisc *sch,struct rtattr *opt)
DPRINTK
(
"ingress_init(sch %p,[qdisc %p],opt %p)
\n
"
,
sch
,
p
,
opt
);
DPRINTK
(
"ingress_init(sch %p,[qdisc %p],opt %p)
\n
"
,
sch
,
p
,
opt
);
p
->
q
=
&
noop_qdisc
;
p
->
q
=
&
noop_qdisc
;
return
0
;
return
0
;
error:
return
-
EINVAL
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment