Commit 38c6aa21 authored by Gao Xiang's avatar Gao Xiang Committed by Greg Kroah-Hartman

staging: erofs: use the wrapped PTR_ERR_OR_ZERO instead of open code

Just clean up and logic doesn't change.

Link: https://lists.01.org/pipermail/kbuild-all/2018-July/050766.html
Fixes: d72d1ce6 ("staging: erofs: add namei functions")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarGao Xiang <gaoxiang25@huawei.com>
Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b9f13084
......@@ -195,7 +195,7 @@ int erofs_namei(struct inode *dir,
kunmap_atomic(data);
put_page(page);
return IS_ERR(de) ? PTR_ERR(de) : 0;
return PTR_ERR_OR_ZERO(de);
}
/* NOTE: i_mutex is already held by vfs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment