mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-05-26 11:40:24 +02:00
ntfs: prefer IS_ERR_OR_NULL() over manual NULL check
Use IS_ERR_OR_NULL() instead of manual NULL and IS_ERR() checks. Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
This commit is contained in:
committed by
Namjae Jeon
parent
e6a95c5a80
commit
7cf4b3c768
+1
-1
@@ -593,7 +593,7 @@ err_out:
|
||||
unmap_mft_record(dir_ni);
|
||||
kfree(name);
|
||||
*res = NULL;
|
||||
if (ia_vi && !IS_ERR(ia_vi))
|
||||
if (!IS_ERR_OR_NULL(ia_vi))
|
||||
iput(ia_vi);
|
||||
return ERR_MREF(err);
|
||||
dir_err_out:
|
||||
|
||||
+1
-1
@@ -721,7 +721,7 @@ out:
|
||||
rl[rlpos].lcn = is_extension ? LCN_ENOENT : LCN_RL_NOT_MAPPED;
|
||||
rl[rlpos].length = 0;
|
||||
}
|
||||
if (likely(folio && !IS_ERR(folio))) {
|
||||
if (!IS_ERR_OR_NULL(folio)) {
|
||||
if (need_writeback) {
|
||||
ntfs_debug("Marking page dirty.");
|
||||
folio_mark_dirty(folio);
|
||||
|
||||
Reference in New Issue
Block a user