Skip to content

Commit

Permalink
VFS: fix unused variable warning
Browse files Browse the repository at this point in the history
Commit 33dcdac ("kill ->put_inode")
removed the final use of i_op->put_inode, but left the now totally
unused "op" variable in iput().

Get rid of it.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed May 6, 2008
1 parent aeed5fc commit 6ce07c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/inode.c
Original file line number Diff line number Diff line change
@@ -1149,8 +1149,6 @@ static inline void iput_final(struct inode *inode)
void iput(struct inode *inode)
{
if (inode) {
const struct super_operations *op = inode->i_sb->s_op;

BUG_ON(inode->i_state == I_CLEAR);

if (atomic_dec_and_lock(&inode->i_count, &inode_lock))

0 comments on commit 6ce07c7

Please sign in to comment.