提交 050d2a8b 编写于 作者: C Chen Zhou 提交者: Steve French

cifs: use PTR_ERR_OR_ZERO() to simplify code

PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR, just use
PTR_ERR_OR_ZERO directly.
Signed-off-by: NChen Zhou <chenzhou10@huawei.com>
Signed-off-by: NSteve French <stfrench@microsoft.com>
Reviewed-by: NPaulo Alcantara (SUSE) <pc@cjr.nz>
上级 8bd0d701
......@@ -661,7 +661,7 @@ static int __dfs_cache_find(const unsigned int xid, struct cifs_ses *ses,
*/
if (noreq) {
up_read(&htable_rw_lock);
return IS_ERR(ce) ? PTR_ERR(ce) : 0;
return PTR_ERR_OR_ZERO(ce);
}
if (!IS_ERR(ce)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册