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

powerpc/spufs: Remove unused error path

Commit 45db9240890d9343c934db1fe82d6e68ac2d28da ("powerpc/spufs: Remove
double check for non-negative dentry") removed the only user of the
out_dput label, so remove it and the code following it.

Gets rid of this warning:

arch/powerpc/platforms/cell/spufs/inode.c: In function 'spufs_create':
arch/powerpc/platforms/cell/spufs/inode.c:647: warning: label 'out_dput' defined but not used

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Stephen Rothwell and committed by
Benjamin Herrenschmidt
1babddbc bcba0778

-2
-2
arch/powerpc/platforms/cell/spufs/inode.c
··· 644 644 fsnotify_mkdir(nd->path.dentry->d_inode, dentry); 645 645 return ret; 646 646 647 - out_dput: 648 - dput(dentry); 649 647 out_dir: 650 648 mutex_unlock(&nd->path.dentry->d_inode->i_mutex); 651 649 out: