Cleaning usage of MAJOR/MINOR

Change-Id: I4d7718c51967930375a5f0657b61f869745cf644
This commit is contained in:
2012-12-12 14:30:19 +01:00
parent 0c3ae37f52
commit 22e69f558e
8 changed files with 11 additions and 41 deletions

View File

@@ -275,8 +275,8 @@ struct inode *alloc_inode(dev_t dev, mode_t bits)
b = alloc_bit(sp, IMAP, sp->s_isearch);
if (b == NO_BIT) {
err_code = ENOSPC;
major = (int) (sp->s_dev >> MAJOR) & BYTE;
minor = (int) (sp->s_dev >> MINOR) & BYTE;
major = major(sp->s_dev);
minor = minor(sp->s_dev);
printf("Out of i-nodes on device %d/%d\n", major, minor);
return(NULL);
}