]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-buf: Fix ifnullfree.cocci warnings
authorVasyl Gomonovych <gomonovych@gmail.com>
Wed, 22 Nov 2017 15:22:41 +0000 (16:22 +0100)
committerSumit Semwal <sumit.semwal@linaro.org>
Thu, 23 Nov 2017 10:45:13 +0000 (16:15 +0530)
commit298b6a815bba69c12336114c546104ba9d25bc8f
tree43c2848a5ef8c96041ab58d5cbc16768014e8a9a
parente2b155e9924c39c074339cf77e22a0a4cead66e0
dma-buf: Fix ifnullfree.cocci warnings

NULL check before some freeing functions is not needed.
drivers/dma-buf/dma-buf.c:1183:2-26: WARNING: NULL check before freeing debugfs_remove_recursive
Generated by: scripts/coccinelle/free/ifnullfree.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1511364161-6074-1-git-send-email-gomonovych@gmail.com
drivers/dma-buf/dma-buf.c