VFS: use S_IS* macros

This commit is contained in:
Thomas Veerman
2012-04-27 08:49:38 +00:00
parent 96bbc5da3e
commit db8198d99d
13 changed files with 52 additions and 70 deletions
+1 -3
View File
@@ -552,9 +552,7 @@ char ename[NAME_MAX + 1];
pos = make64(0, 0);
if ((dirp->v_mode & I_TYPE) != I_DIRECTORY) {
return(EBADF);
}
if (!S_ISDIR(dirp->v_mode)) return(EBADF);
do {
r = req_getdents(dirp->v_fs_e, dirp->v_inode_nr, pos, buf, sizeof(buf),