summaryrefslogtreecommitdiffstats
path: root/net/sched/sch_hfsc.c
diff options
context:
space:
mode:
authorAlexander Aring <aring@mojatatu.com>2017-12-20 12:35:11 -0500
committerDavid S. Miller <davem@davemloft.net>2017-12-21 12:32:49 -0500
commitac8ef4ab731fae8617a41960917ceda475d5a2df (patch)
tree0b032942df5b9bdf42c10cbb45494db30c5cd957 /net/sched/sch_hfsc.c
parent8f36e00065436412a02d1f50ad77375bdb506300 (diff)
downloadlinux-ac8ef4ab731fae8617a41960917ceda475d5a2df.tar.gz
linux-ac8ef4ab731fae8617a41960917ceda475d5a2df.tar.bz2
linux-ac8ef4ab731fae8617a41960917ceda475d5a2df.zip
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_hfsc.c')
-rw-r--r--net/sched/sch_hfsc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
index d04068a97d81..94db20352f37 100644
--- a/net/sched/sch_hfsc.c
+++ b/net/sched/sch_hfsc.c
@@ -1396,7 +1396,7 @@ hfsc_init_qdisc(struct Qdisc *sch, struct nlattr *opt)
qdisc_watchdog_init(&q->watchdog, sch);
- if (opt == NULL || nla_len(opt) < sizeof(*qopt))
+ if (!opt || nla_len(opt) < sizeof(*qopt))
return -EINVAL;
qopt = nla_data(opt);