dm integrity: Remove extra unlikely helper
authorHongbo Li <lihongbo22@huawei.com>
Sat, 31 Aug 2024 09:48:01 +0000 (17:48 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 2 Sep 2024 09:41:11 +0000 (11:41 +0200)
In IS_ERR, the unlikely is used for the input parameter,
so these is no need to use it again outside.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-integrity.c

index 51e6964c130548ddc2a596e8b1e14f7a007310dc..8306f8511078b2a335d8058b830456f0a0f9ccb7 100644 (file)
@@ -2447,7 +2447,7 @@ retry:
        bio->bi_iter.bi_sector += ic->start + SB_SECTORS;
 
        bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
-       if (unlikely(IS_ERR(bip))) {
+       if (IS_ERR(bip)) {
                bio->bi_status = errno_to_blk_status(PTR_ERR(bip));
                bio_endio(bio);
                return DM_MAPIO_SUBMITTED;
@@ -2520,7 +2520,7 @@ static void dm_integrity_inline_recheck(struct work_struct *w)
                }
 
                bip = bio_integrity_alloc(outgoing_bio, GFP_NOIO, 1);
-               if (unlikely(IS_ERR(bip))) {
+               if (IS_ERR(bip)) {
                        bio_put(outgoing_bio);
                        bio->bi_status = errno_to_blk_status(PTR_ERR(bip));
                        bio_endio(bio);