diff options
author | Gao Xiang <gaoxiang25@huawei.com> | 2018-07-30 09:51:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-30 09:38:34 +0200 |
commit | 38c6aa2175c35358d01c29266000d26c78af9e36 (patch) | |
tree | fb6790458baf9a87e1ffaf3120dc994c03ca7685 /drivers | |
parent | b9f13084580c9032ba7c505da2c6c075f176472a (diff) |
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: d72d1ce60174 ("staging: erofs: add namei functions")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/erofs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |