From: Yan, Zheng Date: Thu, 10 Mar 2016 03:29:34 +0000 (+0800) Subject: ceph: remove unnecessary NULL check X-Git-Tag: v4.9.8~2386^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4531126753aaf936e2674d28245400c6559ef0ee;p=platform%2Fkernel%2Flinux-rpi3.git 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: Yan, Zheng --- diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 888674c..fc5cae2 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -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? */