Commit 9e306ba3 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

binderfs: remove redundant assignment to pointer ctx



The pointer ctx is being initialized with a value that is never read
and it is being updated later with a new value. The initialization
is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200402105000.506296-1-colin.king@canonical.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7a1c4f28
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -747,7 +747,7 @@ static const struct fs_context_operations binderfs_fs_context_ops = {


static int binderfs_init_fs_context(struct fs_context *fc)
static int binderfs_init_fs_context(struct fs_context *fc)
{
{
	struct binderfs_mount_opts *ctx = fc->fs_private;
	struct binderfs_mount_opts *ctx;


	ctx = kzalloc(sizeof(struct binderfs_mount_opts), GFP_KERNEL);
	ctx = kzalloc(sizeof(struct binderfs_mount_opts), GFP_KERNEL);
	if (!ctx)
	if (!ctx)