From: Bart Van Assche Date: Fri, 18 Nov 2016 23:45:56 +0000 (-0800) Subject: target: Use NULL instead of 0 to represent a pointer X-Git-Tag: v4.10-rc1~34^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cc3bb0789eab91e5543c7b9fbc3bde7f9c8973b;p=platform%2Fkernel%2Flinux-exynos.git target: Use NULL instead of 0 to represent a pointer This has been detected by sparse. Signed-off-by: Bart Van Assche --- diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 2001005..3bf6384 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c @@ -144,12 +144,12 @@ static ssize_t target_core_item_dbroot_store(struct config_item *item, return -EINVAL; } if (!S_ISDIR(fp->f_inode->i_mode)) { - filp_close(fp, 0); + filp_close(fp, NULL); mutex_unlock(&g_tf_lock); pr_err("db_root: not a directory: %s\n", db_root_stage); return -EINVAL; } - filp_close(fp, 0); + filp_close(fp, NULL); strncpy(db_root, db_root_stage, read_bytes);