OSDN Git Service

taprio: remove unused variable 'entry_list_policy'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 9 Aug 2019 01:49:23 +0000 (09:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:41:24 +0000 (13:41 -0700)
commitca497fb6aa9fbd3b0a87fd0a71e9e1df2600ac30
tree7f41fff7fbe943d79cc86717aab5183f56ea53f2
parenta7eb6a4f2560d5ae64bfac98d79d11378ca2de6c
taprio: remove unused variable 'entry_list_policy'

net/sched/sch_taprio.c:680:32: warning:
 entry_list_policy defined but not used [-Wunused-const-variable=]

One of the points of commit a3d43c0d56f1 ("taprio: Add support adding
an admin schedule") is that it removes support (it now returns "not
supported") for schedules using the TCA_TAPRIO_ATTR_SCHED_SINGLE_ENTRY
attribute (which were never used), the parsing of those types of schedules
was the only user of this policy. So removing this policy should be fine.

Reported-by: Hulk Robot <hulkci@huawei.com>
Suggested-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_taprio.c