diff --git a/fs/nilfs2/inode.c b/fs/nilfs2/inode.c index ba7a1da7634b2a19a7a01da2dba9712fd6e2971b..cf02f5530713e4354b20119d68346bcd25f8ec57 100644 --- a/fs/nilfs2/inode.c +++ b/fs/nilfs2/inode.c @@ -192,7 +192,7 @@ static int nilfs_writepage(struct page *page, struct writeback_control *wbc) struct inode *inode = page->mapping->host; int err; - if (inode && (inode->i_sb->s_flags & MS_RDONLY)) { + if (inode->i_sb->s_flags & MS_RDONLY) { /* * It means that filesystem was remounted in read-only * mode because of error or metadata corruption. But we