diff options
author | Christoph Hellwig <hch@lst.de> | 2007-05-08 00:25:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-08 11:15:02 -0700 |
commit | acb0c854fa9483fa85e377b9f342352ea814a580 (patch) | |
tree | 654c7049c01b97314f2b93671b7d0c315a40adcf /fs/ioctl.c | |
parent | 578c8183c116e623d53b05d4c79762d053c7090f (diff) | |
download | linux-stable-acb0c854fa9483fa85e377b9f342352ea814a580.tar.gz linux-stable-acb0c854fa9483fa85e377b9f342352ea814a580.tar.bz2 linux-stable-acb0c854fa9483fa85e377b9f342352ea814a580.zip |
vfs: remove superflous sb == NULL checks
inode->i_sb is always set, not need to check for it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ioctl.c')
-rw-r--r-- | fs/ioctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ioctl.c b/fs/ioctl.c index ff61772ceedd..479c1038ed4a 100644 --- a/fs/ioctl.c +++ b/fs/ioctl.c @@ -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); |