tc: array address is never NULL
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 25 Oct 2019 11:41:31 +0000 (13:41 +0200)
committerDenys 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

index 2e1078d31bc122b44d4aef246a0a4d894c20f353..5106844434a8a3338707fd5f4dfd49526fe452c2 100644 (file)
@@ -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]);