Commit 35a5c328 authored by YueHaibing's avatar YueHaibing Committed by Michael Ellerman
Browse files

powerpc/spufs: remove set but not used variable 'ctx'



arch/powerpc/platforms/cell/spufs/inode.c:201:22:
 warning: variable ctx set but not used [-Wunused-but-set-variable]

It is not used since commit 67cba9fd ("move
spu_forget() into spufs_rmdir()")

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191023134423.15052-1-yuehaibing@huawei.com
parent c312d14e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -198,14 +198,12 @@ static int spufs_fill_dir(struct dentry *dir,

static int spufs_dir_close(struct inode *inode, struct file *file)
{
	struct spu_context *ctx;
	struct inode *parent;
	struct dentry *dir;
	int ret;

	dir = file->f_path.dentry;
	parent = d_inode(dir->d_parent);
	ctx = SPUFS_I(d_inode(dir))->i_ctx;

	inode_lock_nested(parent, I_MUTEX_PARENT);
	ret = spufs_rmdir(parent, dir);