summaryrefslogtreecommitdiffstats
path: root/block/blk-cgroup.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2019-06-05 10:24:27 -0400
committerJens Axboe <axboe@kernel.dk>2019-06-05 10:22:24 -0400
commit98d669b49120bad6a09c361daa71c92e6a9f8fbb (patch)
tree95bdf54f76b0677fd67a021f5bef56e728266cec /block/blk-cgroup.c
parente0241fb0b94399bb4131da7f29dc92cf5dc1ae71 (diff)
block: Drop unlikely before IS_ERR(_OR_NULL)
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>
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r--block/blk-cgroup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c
index b97b479e4f64..1f7127b03490 100644
--- 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,
881 blkg_free(new_blkg); 881 blkg_free(new_blkg);
882 } else { 882 } else {
883 blkg = blkg_create(pos, q, new_blkg); 883 blkg = blkg_create(pos, q, new_blkg);
884 if (unlikely(IS_ERR(blkg))) { 884 if (IS_ERR(blkg)) {
885 ret = PTR_ERR(blkg); 885 ret = PTR_ERR(blkg);
886 goto fail_unlock; 886 goto fail_unlock;
887 } 887 }