Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Colin Ian King <colin.king@canonical.com>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200402105000.506296-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
9e306ba3 7a1c4f28

+1 -1
+1 -1
drivers/android/binderfs.c
··· 747 747 748 748 static int binderfs_init_fs_context(struct fs_context *fc) 749 749 { 750 - struct binderfs_mount_opts *ctx = fc->fs_private; 750 + struct binderfs_mount_opts *ctx; 751 751 752 752 ctx = kzalloc(sizeof(struct binderfs_mount_opts), GFP_KERNEL); 753 753 if (!ctx)