Skip to contentSkip to conversation

powerpc/spufs: remove double check for non-negative dentry

PATCH New Arnd Bergmann 1 participant 1 message May 13, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 powerpc/spufs: remove double check for non-negative dentry

From: Jan Blunck <[email protected]>

This patch removes an unnecessary double check if the dentry returned by lookup_create() is actually non-negative. Since lookup_create() itself returns an error in this case just remove the check.

---
 arch/powerpc/platforms/cell/spufs/inode.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
arch/powerpc/platforms/cell/spufs/inode.c +0 -4
index 706eb5c..36b6700 100644
@@ -631,10 +631,6 @@ long spufs_create(struct nameidata *nd, unsigned int flags, mode_t mode,
 	if (IS_ERR(dentry))
 		goto out_dir;
 
-	ret = -EEXIST;
-	if (dentry->d_inode)
-		goto out_dput;
-
 	mode &= ~current_umask();
 
 	if (flags & SPU_CREATE_GANG)
Signature · 1 line
1.5.6.3