]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/coccinelle/free: add NULL test before dev_{put, hold} functions
authorZiyang Xuan <william.xuanziyang@huawei.com>
Thu, 16 Jun 2022 01:32:53 +0000 (09:32 +0800)
committerJulia Lawall <Julia.Lawall@inria.fr>
Sat, 16 Jul 2022 13:33:55 +0000 (15:33 +0200)
commitb86bf8383f82a885d15c20c16f4b270f0fdfaf89
tree4f964216263f2e06bae4a6fa60906f9b17de0eaf
parent95ef61495a6fa6d70f5ccdc3ceb98a8afd023717
scripts/coccinelle/free: add NULL test before dev_{put, hold} functions

Since commit 1d6b50d416e7 ("netdevice: add the case if dev is NULL"),
NULL check before dev_{put, hold} functions is not needed.

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccinelle/free/ifnulldev_put.cocci [new file with mode: 0644]