erofs: fix ifnullfree.cocci warnings
PATCH RESEND 1/2 erofs: fix ifnullfree.cocci warnings
From: kbuild test robot <[email protected]>
NULL check before kfree is not needed.
Generated by: scripts/coccinelle/free/ifnullfree.cocci
Fixes 4f89dfc3f411 ("erofs: update Kconfig and Makefile")
CC Gao Xiang <gaoxiang25 at huawei.com>
Signed-off-by kbuild test robot <fengguang.wu at intel.com>
Signed-off-by Julia Lawall <julia.lawall at lip6.fr>
Signed-off-by Chao Yu <yuchao0 at huawei.com>
--- fs/erofs/super.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
fs/erofs/super.c +1 -2
@@ -61,8 +61,7 @@ static void i_callback(struct rcu_head *head)kfree (inode->i_link);#endif -if (vi->xattr_shared_xattrs !=NULL ) -kfree (vi->xattr_shared_xattrs); +kfree (vi->xattr_shared_xattrs);kmem_cache_free (erofs_inode_cachep, vi); }
Signature · 1 line
2.18.0.rc1
PATCH RESEND 2/2 erofs: update SPDX-License-Identifier
From: Gao Xiang <[email protected]>
Update the source code license to "GPLv2+" from patchset v2. (Could be updated suggested by Savannah in the future.)
Signed-off-by Gao Xiang <gaoxiang25 at huawei.com>
Reviewed-by Chao Yu <yuchao0 at huawei.com>
Signed-off-by Chao Yu <yuchao0 at huawei.com>
--- fs/erofs/data.c | 2 +- fs/erofs/dir.c | 2 +- fs/erofs/erofs_fs.h | 2 +- fs/erofs/inode.c | 2 +- fs/erofs/internal.h | 2 +- fs/erofs/namei.c | 2 +- fs/erofs/pagevec.h | 2 +- fs/erofs/staging.h | 2 +- fs/erofs/super.c | 2 +- fs/erofs/unzip.c | 2 +- fs/erofs/unzip.h | 2 +- fs/erofs/unzip_generic.c | 2 +- fs/erofs/unzip_lz4.c | 2 +- fs/erofs/unzip_vle.h | 2 +- fs/erofs/xattr.c | 2 +- fs/erofs/xattr.h | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-)
fs/erofs/data.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/data.c *
fs/erofs/dir.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/dir.c *
fs/erofs/erofs_fs.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/erofs_fs.h *
fs/erofs/inode.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/inode.c *
fs/erofs/internal.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/internal.h *
fs/erofs/namei.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/namei.c *
fs/erofs/pagevec.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/pagevec.h *
fs/erofs/staging.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ */ /* should be avoid in the future */ #include <linux/version.h>
fs/erofs/super.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/super.c *
fs/erofs/unzip.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/unzip.c *
fs/erofs/unzip.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/unzip.h *
fs/erofs/unzip_generic.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/unzip_generic.c *
fs/erofs/unzip_lz4.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/unzip_lz4.c *
fs/erofs/unzip_vle.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/unzip_vle.h *
fs/erofs/xattr.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0+ /* * linux/fs/erofs/xattr.c *
fs/erofs/xattr.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 +/* SPDX-License-Identifier: GPL-2.0+ * * linux/fs/erofs/xattr.h *
Signature · 1 line
2.18.0.rc1