summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-31 09:11:11 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-06-06 16:26:59 -0700
commit1d4a4bde6b1cd4c8bbe1dd20dee18416a62b9c51 (patch)
treedff6568553c9eea0d5dca633bcde056ea8b99573 /drivers
parent3824c1ddaf744be44b170a335332b9d6afe79254 (diff)
usb: remove bad dput after dentry_unhash
Commit 64252c75a (vfs: remove dget() from dentry_unhash()) removed the useless dget from dentry_unhash but didn't fix up this caller in the usb code. There used to be exactly one dput per dentry_unhash call; now there are none. Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sage Weil <sage@newdream.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c
index 1b125c224dcf..2278dad886e2 100644
--- a/drivers/usb/core/inode.c
+++ b/drivers/usb/core/inode.c
@@ -389,7 +389,6 @@ static int usbfs_rmdir(struct inode *dir, struct dentry *dentry)
mutex_unlock(&inode->i_mutex);
if (!error)
d_delete(dentry);
- dput(dentry);
return error;
}