diff options
author | Alexander Aring <aring@mojatatu.com> | 2017-12-20 20:35:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-21 20:32:49 +0300 |
commit | ac8ef4ab731fae8617a41960917ceda475d5a2df (patch) | |
tree | 0b032942df5b9bdf42c10cbb45494db30c5cd957 /net/sched/sch_multiq.c | |
parent | 8f36e00065436412a02d1f50ad77375bdb506300 (diff) | |
download | linux-ac8ef4ab731fae8617a41960917ceda475d5a2df.tar.xz |
net: sched: fix coding style issues
This patch fix checkpatch issues for upcomming patches according to the
sched api file. It changes mostly how to check on null pointer.
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/sch_multiq.c')
-rw-r--r-- | net/sched/sch_multiq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_multiq.c b/net/sched/sch_multiq.c index 012216386c0b..37195e0c64ba 100644 --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c @@ -243,7 +243,7 @@ static int multiq_init(struct Qdisc *sch, struct nlattr *opt) q->queues = NULL; - if (opt == NULL) + if (!opt) return -EINVAL; err = tcf_block_get(&q->block, &q->filter_list, sch); |