mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
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: Chen Zhou <chenzhou10@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
This commit is contained in:
parent
8bd0d70144
commit
050d2a8b69
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue