Skip to content

Commit e7f5909

Browse files
author
Al Viro
committed
kill useless checks for sb->s_op == NULL
never is... Signed-off-by: Al Viro <[email protected]>
1 parent 0ee5dc6 commit e7f5909

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

drivers/block/pktcdvd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ static int pkt_start_recovery(struct packet_data *pkt)
12061206
if (!sb)
12071207
return 0;
12081208

1209-
if (!sb->s_op || !sb->s_op->relocate_blocks)
1209+
if (!sb->s_op->relocate_blocks)
12101210
goto out;
12111211

12121212
old_block = pkt->sector / (CD_FRAMESIZE >> 9);

fs/cachefiles/bind.c

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ static int cachefiles_daemon_add_cache(struct cachefiles_cache *cache)
129129
!root->d_inode->i_op->mkdir ||
130130
!root->d_inode->i_op->setxattr ||
131131
!root->d_inode->i_op->getxattr ||
132-
!root->d_sb->s_op ||
133132
!root->d_sb->s_op->statfs ||
134133
!root->d_sb->s_op->sync_fs)
135134
goto error_unsupported;

fs/inode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ static void iput_final(struct inode *inode)
13311331

13321332
WARN_ON(inode->i_state & I_NEW);
13331333

1334-
if (op && op->drop_inode)
1334+
if (op->drop_inode)
13351335
drop = op->drop_inode(inode);
13361336
else
13371337
drop = generic_drop_inode(inode);

0 commit comments

Comments
 (0)