Skip to content

Commit 9e306ba

Browse files
Colin Ian Kinggregkh
authored andcommitted
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>
1 parent 7a1c4f2 commit 9e306ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/android/binderfs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ static const struct fs_context_operations binderfs_fs_context_ops = {
747747

748748
static int binderfs_init_fs_context(struct fs_context *fc)
749749
{
750-
struct binderfs_mount_opts *ctx = fc->fs_private;
750+
struct binderfs_mount_opts *ctx;
751751

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

0 commit comments

Comments
 (0)