projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e076162
)
tc: array address is never NULL
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 25 Oct 2019 11:41:31 +0000
(13:41 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 25 Oct 2019 11:41:31 +0000
(13:41 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/tc.c
patch
|
blob
|
history
diff --git
a/networking/tc.c
b/networking/tc.c
index 2e1078d31bc122b44d4aef246a0a4d894c20f353..5106844434a8a3338707fd5f4dfd49526fe452c2 100644
(file)
--- a/
networking/tc.c
+++ b/
networking/tc.c
@@
-215,8
+215,6
@@
static int prio_print_opt(struct rtattr *opt)
if (opt == NULL)
return 0;
parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, sizeof(*qopt));
- if (tb == NULL)
- return 0;
printf("bands %u priomap ", qopt->bands);
for (i=0; i<=TC_PRIO_MAX; i++)
printf(" %d", qopt->priomap[i]);