diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 40a90e4b2..2e3b302f7 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -5845,7 +5845,7 @@ static void vdisk_blk_add_dif(struct bio *bio, gfp_t gfp_mask, } bip = bio_integrity_alloc(bio, gfp_mask, pages); - if (unlikely(IS_ERR_OR_NULL(bip))) { + if (IS_ERR_OR_NULL(bip)) { PRINT_WARNING("Allocation of %d pages for DIF tags " "failed! (dev %s)", pages, dev->virt_name); goto out; /* proceed without integrity */ diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 48aef3a3b..37bbdbd8a 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -8308,7 +8308,7 @@ static struct request *blk_map_kern_sg(struct request_queue *q, if (!sgl) { rq = scst_alloc_passthrough_request(q, reading ? READ : WRITE, gfp); - if (unlikely(IS_ERR_OR_NULL(rq))) + if (IS_ERR_OR_NULL(rq)) return ERR_PTR(-ENOMEM); #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)