summaryrefslogtreecommitdiff
path: root/fs/ext2/namei.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-12-09 17:39:00 +0300
committerJan Kara <jack@suse.cz>2011-01-10 21:04:07 +0300
commit0ed0cca7aa87b1f5708f597075013c20d8359667 (patch)
tree52ed27a9265dae03f33c3cd5e924b4a269c41466 /fs/ext2/namei.c
parenta4ae3094869f18e26ece25ad175bbe4cd740e60b (diff)
downloadlinux-0ed0cca7aa87b1f5708f597075013c20d8359667.tar.xz
ext2: Remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted here. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/namei.c')
-rw-r--r--fs/ext2/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/namei.c b/fs/ext2/namei.c
index f8aecd2e3297..2e1d8341d827 100644
--- a/fs/ext2/namei.c
+++ b/fs/ext2/namei.c
@@ -67,7 +67,7 @@ static struct dentry *ext2_lookup(struct inode * dir, struct dentry *dentry, str
inode = NULL;
if (ino) {
inode = ext2_iget(dir->i_sb, ino);
- if (unlikely(IS_ERR(inode))) {
+ if (IS_ERR(inode)) {
if (PTR_ERR(inode) == -ESTALE) {
ext2_error(dir->i_sb, __func__,
"deleted inode referenced: %lu",