* [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c
@ 2019-02-12 3:24 Chengguang Xu
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Chengguang Xu @ 2019-02-12 3:24 UTC (permalink / raw)
unlikely has already included in IS_ERR(),
so just remove redundant likely/unlikely
annotation.
Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
---
drivers/staging/erofs/namei.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/erofs/namei.c b/drivers/staging/erofs/namei.c
index 5596c52e246d..1acd742a41ed 100644
--- a/drivers/staging/erofs/namei.c
+++ b/drivers/staging/erofs/namei.c
@@ -144,7 +144,7 @@ static struct page *find_target_block_classic(
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;
}
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c
2019-02-12 3:24 [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Chengguang Xu
@ 2019-02-12 3:24 ` Chengguang Xu
2019-02-12 4:32 ` Gao Xiang
2019-02-13 6:36 ` Chao Yu
2019-02-12 4:31 ` [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Gao Xiang
2019-02-13 6:33 ` Chao Yu
2 siblings, 2 replies; 8+ messages in thread
From: Chengguang Xu @ 2019-02-12 3:24 UTC (permalink / raw)
unlikely has already included in IS_ERR(),
so just remove it.
Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
---
drivers/staging/erofs/unzip_vle.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/erofs/unzip_vle.c b/drivers/staging/erofs/unzip_vle.c
index 4ac1099a39c6..7cd2d4d9c264 100644
--- a/drivers/staging/erofs/unzip_vle.c
+++ b/drivers/staging/erofs/unzip_vle.c
@@ -539,7 +539,7 @@ static int z_erofs_vle_work_iter_begin(struct z_erofs_vle_work_builder *builder,
if (unlikely(work == ERR_PTR(-EAGAIN)))
goto repeat;
- if (unlikely(IS_ERR(work)))
+ if (IS_ERR(work))
return PTR_ERR(work);
got_it:
z_erofs_pagevec_ctor_init(&builder->vector,
--
2.20.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c
2019-02-12 3:24 [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Chengguang Xu
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
@ 2019-02-12 4:31 ` Gao Xiang
2019-02-13 6:33 ` Chao Yu
2 siblings, 0 replies; 8+ messages in thread
From: Gao Xiang @ 2019-02-12 4:31 UTC (permalink / raw)
On 2019/2/12 11:24, Chengguang Xu wrote:
> unlikely has already included in IS_ERR(),
> so just remove redundant likely/unlikely
> annotation.
>
> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
Thanks for the correction, and happy new lunar year :)
Reviewed-by: Gao Xiang <gaoxiang25 at huawei.com>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
@ 2019-02-12 4:32 ` Gao Xiang
2019-02-13 6:36 ` Chao Yu
1 sibling, 0 replies; 8+ messages in thread
From: Gao Xiang @ 2019-02-12 4:32 UTC (permalink / raw)
On 2019/2/12 11:24, Chengguang Xu wrote:
> unlikely has already included in IS_ERR(),
> so just remove it.
>
> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
Reviewed-by: Gao Xiang <gaoxiang25 at huawei.com>
Thanks,
Gao Xiang
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c
2019-02-12 3:24 [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Chengguang Xu
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
2019-02-12 4:31 ` [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Gao Xiang
@ 2019-02-13 6:33 ` Chao Yu
2 siblings, 0 replies; 8+ messages in thread
From: Chao Yu @ 2019-02-13 6:33 UTC (permalink / raw)
On 2019/2/12 11:24, Chengguang Xu wrote:
> unlikely has already included in IS_ERR(),
> so just remove redundant likely/unlikely
> annotation.
>
> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
Reviewed-by: Chao Yu <yuchao0 at huawei.com>
Thanks,
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
2019-02-12 4:32 ` Gao Xiang
@ 2019-02-13 6:36 ` Chao Yu
2019-02-13 14:50 ` cgxu519
1 sibling, 1 reply; 8+ messages in thread
From: Chao Yu @ 2019-02-13 6:36 UTC (permalink / raw)
On 2019/2/12 11:24, Chengguang Xu wrote:
> unlikely has already included in IS_ERR(),
> so just remove it.
>
> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
It looks like we don't need to send two patch to fix two similar
issues, if you can merge them, it will be better.
Reviewed-by: Chao Yu <yuchao0 at huawei.com>
Thanks,
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c
2019-02-13 6:36 ` Chao Yu
@ 2019-02-13 14:50 ` cgxu519
2019-02-13 15:28 ` Gao Xiang
0 siblings, 1 reply; 8+ messages in thread
From: cgxu519 @ 2019-02-13 14:50 UTC (permalink / raw)
On 2/13/19 2:36 PM, Chao Yu wrote:
> On 2019/2/12 11:24, Chengguang Xu wrote:
>> unlikely has already included in IS_ERR(),
>> so just remove it.
>>
>> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
> It looks like we don't need to send two patch to fix two similar
> issues, if you can merge them, it will be better.
I agree with you but I noticed the patches have already merged to Greg's
staging tree,
so I'm not sure if it cause inconvenience to his management.
Thanks,
Chengguang
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c
2019-02-13 14:50 ` cgxu519
@ 2019-02-13 15:28 ` Gao Xiang
0 siblings, 0 replies; 8+ messages in thread
From: Gao Xiang @ 2019-02-13 15:28 UTC (permalink / raw)
Hi Chengguang,
On 2019/2/13 22:50, cgxu519 wrote:
>
> On 2/13/19 2:36 PM, Chao Yu wrote:
>> On 2019/2/12 11:24, Chengguang Xu wrote:
>>> unlikely has already included in IS_ERR(),
>>> so just remove it.
>>>
>>> Signed-off-by: Chengguang Xu <cgxu519 at gmx.com>
>> It looks like we don't need to send two patch to fix two similar
>> issues, if you can merge them, it will be better.
> I agree with you but I noticed the patches have already merged to Greg's staging tree,
> so I'm not sure if it cause inconvenience to his management.
>
I personally think it is not a big problem since that is indeed cleanup patches and
thanks for applying erofs patches and happy hacking :)
Thanks,
Gao Xiang
> Thanks,
> Chengguang
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-02-13 15:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-12 3:24 [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Chengguang Xu
2019-02-12 3:24 ` [PATCH 2/2] staging: erofs: remove redundant unlikely annotation in unzip_vle.c Chengguang Xu
2019-02-12 4:32 ` Gao Xiang
2019-02-13 6:36 ` Chao Yu
2019-02-13 14:50 ` cgxu519
2019-02-13 15:28 ` Gao Xiang
2019-02-12 4:31 ` [PATCH 1/2] staging: erofs: remove redundant likely/unlikely annotation in namei.c Gao Xiang
2019-02-13 6:33 ` Chao Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).