diff options
author | Andre Guedes <andre.guedes@intel.com> | 2019-04-23 21:44:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-24 04:52:32 +0200 |
commit | 59ab87f6eb920fd0ee3058ae4c0956f52036b893 (patch) | |
tree | b5feb303840d2987d97fe624bc59c4433dab6840 /net/sched/sch_taprio.c | |
parent | net: Change nhc_flags to unsigned char (diff) | |
download | linux-59ab87f6eb920fd0ee3058ae4c0956f52036b893.tar.xz linux-59ab87f6eb920fd0ee3058ae4c0956f52036b893.zip |
net: sched: taprio: Remove pointless variable assigment
This patch removes a pointless variable assigment in taprio_change().
The 'err' variable is not used from this assignment to the next one so
this patch removes it.
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_taprio.c')
-rw-r--r-- | net/sched/sch_taprio.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sched/sch_taprio.c b/net/sched/sch_taprio.c index 001182aa3959..d91a7ec67348 100644 --- a/net/sched/sch_taprio.c +++ b/net/sched/sch_taprio.c @@ -651,7 +651,6 @@ static int taprio_change(struct Qdisc *sch, struct nlattr *opt, if (err < 0) return err; - err = -EINVAL; if (tb[TCA_TAPRIO_ATTR_PRIOMAP]) mqprio = nla_data(tb[TCA_TAPRIO_ATTR_PRIOMAP]); |