staging: erofs: remove redundant likely/unlikely annotation in namei.c

unlikely has already included in IS_ERR(),
so just remove redundant likely/unlikely
annotation.

Signed-off-by: Chengguang Xu <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Chengguang Xu authored and Greg Kroah-Hartman committed 2019-02-12 10:45:45 +01:00
1 parent 52ec10337c
commit 7fadcdce5d
1 file changed
+3 -3
+3 -3
View File
@@ -144,7 +144,7 @@ exact_out:
head = mid + 1;
startprfx = matched;
if (likely(!IS_ERR(candidate)))
if (!IS_ERR(candidate))
put_page(candidate);
candidate = page;
} else {
@@ -177,7 +177,7 @@ int erofs_namei(struct inode *dir,
diff = 1;
page = find_target_block_classic(dir, name, &diff);
if (unlikely(IS_ERR(page)))
if (IS_ERR(page))
return PTR_ERR(page);
data = kmap_atomic(page);
@@ -187,7 +187,7 @@ int erofs_namei(struct inode *dir,
find_target_dirent(name, data, EROFS_BLKSIZ) :
(struct erofs_dirent *)data;
if (likely(!IS_ERR(de))) {
if (!IS_ERR(de)) {
*nid = le64_to_cpu(de->nid);
*d_type = de->file_type;
}