mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
nilfs2: remove unneeded test in nilfs_writepage()
page->mapping->host cannot be NULL in nilfs_writepage(), so remove the unneeded test. The fixes the smatch warning: "fs/nilfs2/inode.c:211 nilfs_writepage() error: we previously assumed 'inode' could be null (see line 195)". Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Vyacheslav Dubeyko <[email protected]> Cc: Ryusuke Konishi <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
dc33f5f3c9
commit
eb53b6db7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue