提交 5d7ca35a 编写于 作者: D Davidlohr Bueso 提交者: Trond Myklebust

nfs: Remove redundant NULL check upon kfree()

Signed-off-by: NDavidlohr Bueso <dave@gnu.org>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 9b00c643
......@@ -2273,8 +2273,7 @@ static int nfs4_get_referral(struct inode *dir, const struct qstr *name, struct
out:
if (page)
__free_page(page);
if (locations)
kfree(locations);
kfree(locations);
return status;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册