Skip to content

Commit 35a5c32

Browse files
YueHaibingmpe
authored andcommitted
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 67cba9f ("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
1 parent c312d14 commit 35a5c32

File tree

1 file changed

+0
-2
lines changed
  • arch/powerpc/platforms/cell/spufs

1 file changed

+0
-2
lines changed

arch/powerpc/platforms/cell/spufs/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,12 @@ static int spufs_fill_dir(struct dentry *dir,
198198

199199
static int spufs_dir_close(struct inode *inode, struct file *file)
200200
{
201-
struct spu_context *ctx;
202201
struct inode *parent;
203202
struct dentry *dir;
204203
int ret;
205204

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

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

0 commit comments

Comments
 (0)