Since all callers dereference dir, we dont need this check. Coverity id
#337.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
err = -EDQUOT;
goto out_end_trans;
}
err = -EDQUOT;
goto out_end_trans;
}
- if (!dir || !dir->i_nlink) {
err = -EPERM;
goto out_bad_inode;
}
err = -EPERM;
goto out_bad_inode;
}