Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45311267 authored by Yan, Zheng's avatar Yan, Zheng Committed by Ilya Dryomov
Browse files

ceph: remove unnecessary NULL check



If page->mapping is NULL, releasepage() callback does not get called.
Remove the unnecessary NULL check to make static code analysis tool
happy

Signed-off-by: default avatarYan, Zheng <zyan@redhat.com>
parent a3d714c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -175,8 +175,8 @@ static void ceph_invalidatepage(struct page *page, unsigned int offset,

static int ceph_releasepage(struct page *page, gfp_t g)
{
	struct inode *inode = page->mapping ? page->mapping->host : NULL;
	dout("%p releasepage %p idx %lu\n", inode, page, page->index);
	dout("%p releasepage %p idx %lu\n", page->mapping->host,
	     page, page->index);
	WARN_ON(PageDirty(page));

	/* Can we release the page from the cache? */