projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: sched: remove redundant NULL check in change hook function
[linux-2.6-microblaze.git]
/
net
/
sched
/
sch_plug.c
diff --git
a/net/sched/sch_plug.c
b/net/sched/sch_plug.c
index
cbc2ebc
..
ea8c4a7
100644
(file)
--- a/
net/sched/sch_plug.c
+++ b/
net/sched/sch_plug.c
@@
-161,9
+161,6
@@
static int plug_change(struct Qdisc *sch, struct nlattr *opt,
struct plug_sched_data *q = qdisc_priv(sch);
struct tc_plug_qopt *msg;
- if (opt == NULL)
- return -EINVAL;
-
msg = nla_data(opt);
if (nla_len(opt) < sizeof(*msg))
return -EINVAL;