]> 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)
commit1a61c8e451b1e8575d98d3d4fd9bdc08c4115cfa
tree4f964216263f2e06bae4a6fa60906f9b17de0eaf
parent045e10d21e5363a797f2fc4aa4f17f3e2c9db4fe
scripts/coccinelle/free: add NULL test before dev_{put, hold} functions

Since commit 8a32d00ea2a0 ("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]