diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-25 13:41:31 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2019-10-25 13:41:31 +0200 |
commit | b4ad1d86b62090fed831e074a3c154af43cd66ce (patch) | |
tree | 6b1b314979afd641b64270bf5c38ff429a8b9fad | |
parent | e076162897638a9b4952a77bf9cd7d24b2a296be (diff) | |
download | busybox-w32-b4ad1d86b62090fed831e074a3c154af43cd66ce.tar.gz busybox-w32-b4ad1d86b62090fed831e074a3c154af43cd66ce.tar.bz2 busybox-w32-b4ad1d86b62090fed831e074a3c154af43cd66ce.zip |
tc: array address is never NULL
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/tc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/networking/tc.c b/networking/tc.c index 2e1078d31..510684443 100644 --- a/networking/tc.c +++ b/networking/tc.c | |||
@@ -215,8 +215,6 @@ static int prio_print_opt(struct rtattr *opt) | |||
215 | if (opt == NULL) | 215 | if (opt == NULL) |
216 | return 0; | 216 | return 0; |
217 | parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, sizeof(*qopt)); | 217 | parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, sizeof(*qopt)); |
218 | if (tb == NULL) | ||
219 | return 0; | ||
220 | printf("bands %u priomap ", qopt->bands); | 218 | printf("bands %u priomap ", qopt->bands); |
221 | for (i=0; i<=TC_PRIO_MAX; i++) | 219 | for (i=0; i<=TC_PRIO_MAX; i++) |
222 | printf(" %d", qopt->priomap[i]); | 220 | printf(" %d", qopt->priomap[i]); |