mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
vfs: remove superflous sb == NULL checks
inode->i_sb is always set, not need to check for it. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
578c8183c1
commit
acb0c854fa
2 changed files with 2 additions and 4 deletions
|
|
@ -67,8 +67,6 @@ static int file_ioctl(struct file *filp, unsigned int cmd,
|
|||
return put_user(res, p);
|
||||
}
|
||||
case FIGETBSZ:
|
||||
if (inode->i_sb == NULL)
|
||||
return -EBADF;
|
||||
return put_user(inode->i_sb->s_blocksize, p);
|
||||
case FIONREAD:
|
||||
return put_user(i_size_read(inode) - filp->f_pos, p);
|
||||
|
|
|
|||
Loading…
Reference in a new issue