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
b1eb7853
Commit
b1eb7853
authored
Oct 04, 2004
by
Patrick McHardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET_SCHED]: Remove useless variable in tc_ctl_tfilter
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
712528cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/sched/cls_api.c
net/sched/cls_api.c
+4
-4
No files found.
net/sched/cls_api.c
View file @
b1eb7853
...
...
@@ -139,7 +139,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
struct
tcf_proto_ops
*
tp_ops
;
struct
Qdisc_class_ops
*
cops
;
unsigned
long
cl
=
0
;
unsigned
long
fh
,
fh_s
;
unsigned
long
fh
;
int
err
;
if
(
prio
==
0
)
{
...
...
@@ -249,7 +249,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
}
else
if
(
tca
[
TCA_KIND
-
1
]
&&
rtattr_strcmp
(
tca
[
TCA_KIND
-
1
],
tp
->
ops
->
kind
))
goto
errout
;
fh
_s
=
fh
=
tp
->
ops
->
get
(
tp
,
t
->
tcm_handle
);
fh
=
tp
->
ops
->
get
(
tp
,
t
->
tcm_handle
);
if
(
fh
==
0
)
{
if
(
n
->
nlmsg_type
==
RTM_DELTFILTER
&&
t
->
tcm_handle
==
0
)
{
...
...
@@ -257,7 +257,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
*
back
=
tp
->
next
;
qdisc_unlock_tree
(
dev
);
tfilter_notify
(
skb
,
n
,
tp
,
fh
_s
,
RTM_DELTFILTER
);
tfilter_notify
(
skb
,
n
,
tp
,
fh
,
RTM_DELTFILTER
);
tcf_destroy
(
tp
);
err
=
0
;
goto
errout
;
...
...
@@ -276,7 +276,7 @@ static int tc_ctl_tfilter(struct sk_buff *skb, struct nlmsghdr *n, void *arg)
case
RTM_DELTFILTER
:
err
=
tp
->
ops
->
delete
(
tp
,
fh
);
if
(
err
==
0
)
tfilter_notify
(
skb
,
n
,
tp
,
fh
_s
,
RTM_DELTFILTER
);
tfilter_notify
(
skb
,
n
,
tp
,
fh
,
RTM_DELTFILTER
);
goto
errout
;
case
RTM_GETTFILTER
:
err
=
tfilter_notify
(
skb
,
n
,
tp
,
fh
,
RTM_NEWTFILTER
);
...
...
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