Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

YueHaibing and committed by
Michael Ellerman
35a5c328 c312d14e

-2
-2
arch/powerpc/platforms/cell/spufs/inode.c
··· 198 198 199 199 static int spufs_dir_close(struct inode *inode, struct file *file) 200 200 { 201 - struct spu_context *ctx; 202 201 struct inode *parent; 203 202 struct dentry *dir; 204 203 int ret; 205 204 206 205 dir = file->f_path.dentry; 207 206 parent = d_inode(dir->d_parent); 208 - ctx = SPUFS_I(d_inode(dir))->i_ctx; 209 207 210 208 inode_lock_nested(parent, I_MUTEX_PARENT); 211 209 ret = spufs_rmdir(parent, dir);