]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: remove unneeded test in nilfs_writepage()
authorVyacheslav Dubeyko <slava@dubeyko.com>
Tue, 30 Apr 2013 22:27:51 +0000 (15:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 May 2013 00:04:05 +0000 (17:04 -0700)
commitcb7c5c9dc1cf7bddf77e91d757cffb45aa084ad6
tree172238481b52168e21aab3fb41ba31226ff2b850
parent33704b2e387f2e753364848a2e25c1618bc12991
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 <dan.carpenter@oracle.com>
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nilfs2/inode.c