projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0241fb
)
block: Drop unlikely before IS_ERR(_OR_NULL)
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Wed, 5 Jun 2019 14:24:27 +0000
(22:24 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 5 Jun 2019 14:22:24 +0000
(08:22 -0600)
IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag,
so no need to do that again from its callers. Drop it.
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
patch
|
blob
|
blame
|
history
diff --git
a/block/blk-cgroup.c
b/block/blk-cgroup.c
index b97b479e4f64f6800cf1ca8d0937019fea0f1489..1f7127b03490db873a6a631a9ca17d349995ac81 100644
(file)
--- a/
block/blk-cgroup.c
+++ b/
block/blk-cgroup.c
@@
-881,7
+881,7
@@
int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol,
blkg_free(new_blkg);
} else {
blkg = blkg_create(pos, q, new_blkg);
- if (
unlikely(IS_ERR(blkg)
)) {
+ if (
IS_ERR(blkg
)) {
ret = PTR_ERR(blkg);
goto fail_unlock;
}