diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c index b0315b7270b457dd59ad72d0bc9212c606d5975b..9a384d1e27b49242e90f102bba206d6dee8433ca 100644 --- a/fs/cifs/dfs_cache.c +++ b/fs/cifs/dfs_cache.c @@ -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)) {