aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/cell/spufs/inode.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-10-23 21:44:23 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2019-11-13 16:58:07 +1100
commit35a5c328fcf3493c5adf333d34c1ca6953fe372d (patch)
tree46425ece64a1797e4fe6c2056a4ac311442d40df /arch/powerpc/platforms/cell/spufs/inode.c
parentpowerpc/powernv/ioda: using kfree_rcu() to simplify the code (diff)
downloadlinux-dev-35a5c328fcf3493c5adf333d34c1ca6953fe372d.tar.xz
linux-dev-35a5c328fcf3493c5adf333d34c1ca6953fe372d.zip
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 67cba9fd6456 ("move spu_forget() into spufs_rmdir()") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191023134423.15052-1-yuehaibing@huawei.com
Diffstat (limited to '')
-rw-r--r--arch/powerpc/platforms/cell/spufs/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c
index 2dd452a047cd..9b1586b85152 100644
--- a/arch/powerpc/platforms/cell/spufs/inode.c
+++ b/arch/powerpc/platforms/cell/spufs/inode.c
@@ -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);