mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: d72d1ce601 ("staging: erofs: add namei functions")
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b9f1308458
commit
38c6aa2175
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue