tc: array address is never NULL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -215,8 +215,6 @@ static int prio_print_opt(struct rtattr *opt)
|
|||||||
if (opt == NULL)
|
if (opt == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, sizeof(*qopt));
|
parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, sizeof(*qopt));
|
||||||
if (tb == NULL)
|
|
||||||
return 0;
|
|
||||||
printf("bands %u priomap ", qopt->bands);
|
printf("bands %u priomap ", qopt->bands);
|
||||||
for (i=0; i<=TC_PRIO_MAX; i++)
|
for (i=0; i<=TC_PRIO_MAX; i++)
|
||||||
printf(" %d", qopt->priomap[i]);
|
printf(" %d", qopt->priomap[i]);
|
||||||
|
Reference in New Issue
Block a user