Skip to content

Commit

Permalink
kill useless checks for sb->s_op == NULL
Browse files Browse the repository at this point in the history
never is...

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jul 20, 2011
1 parent 0ee5dc6 commit e7f5909
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/block/pktcdvd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ static int pkt_start_recovery(struct packet_data *pkt)
if (!sb)
return 0;

if (!sb->s_op || !sb->s_op->relocate_blocks)
if (!sb->s_op->relocate_blocks)
goto out;

old_block = pkt->sector / (CD_FRAMESIZE >> 9);
Expand Down
1 change: 0 additions & 1 deletion fs/cachefiles/bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
!root->d_inode->i_op->mkdir ||
!root->d_inode->i_op->setxattr ||
!root->d_inode->i_op->getxattr ||
!root->d_sb->s_op ||
!root->d_sb->s_op->statfs ||
!root->d_sb->s_op->sync_fs)
goto error_unsupported;
Expand Down
2 changes: 1 addition & 1 deletion fs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ static void iput_final(struct inode *inode)

WARN_ON(inode->i_state & I_NEW);

if (op && op->drop_inode)
if (op->drop_inode)
drop = op->drop_inode(inode);
else
drop = generic_drop_inode(inode);
Expand Down

0 comments on commit e7f5909

Please sign in to comment.