mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
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>
This commit is contained in:
parent
8f36e00065
commit
ac8ef4ab73
6 changed files with 14 additions and 13 deletions
|
@ -669,7 +669,7 @@ int qdisc_class_hash_init(struct Qdisc_class_hash *clhash)
|
|||
unsigned int size = 4;
|
||||
|
||||
clhash->hash = qdisc_class_hash_alloc(size);
|
||||
if (clhash->hash == NULL)
|
||||
if (!clhash->hash)
|
||||
return -ENOMEM;
|
||||
clhash->hashsize = size;
|
||||
clhash->hashmask = size - 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue