aboutsummaryrefslogtreecommitdiff
path: root/drivers/android
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-04-02 11:50:00 +0100
committerGreg Kroah-Hartman <[email protected]>2020-04-23 16:48:11 +0200
commit9e306ba3a9299fc0348d2345e4cfdb39b77a8a27 (patch)
tree5b5551bb711bba9dcf79c51506bbad22462569a3 /drivers/android
parent7a1c4f28ead628d44773ff90ae2414f8e7ea31ad (diff)
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 <[email protected]> Acked-by: Christian Brauner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android')
-rw-r--r--drivers/android/binderfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c
index 78528e1b7ec1..7cf566aafe1f 100644
--- a/drivers/android/binderfs.c
+++ b/drivers/android/binderfs.c
@@ -747,7 +747,7 @@ static const struct fs_context_operations binderfs_fs_context_ops = {
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);
if (!ctx)