diff --git a/drivers/staging/erofs/namei.c b/drivers/staging/erofs/namei.c index d2a0da3b1e44..546a47156101 100644 --- a/drivers/staging/erofs/namei.c +++ b/drivers/staging/erofs/namei.c @@ -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 */