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

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