/* Opens a file named NAME and initializes FILE for usage with
the file_*() functions declared in file.h.
- Returns true if successful, false on failure.
+ Returns the new file if successful or a null pointer
+ otherwise.
Fails if no file named NAME exists,
or if an internal memory allocation fails. */
struct file *
if (!dir_lookup (dir, name, &inode_sector))
goto done;
- /* Open the inode and delete it it. */
+ /* Open the inode and delete it. */
inode = inode_open (inode_sector);
if (inode == NULL)
goto done;