Commit 35c9f09b authored by Hongbo Li's avatar Hongbo Li Committed by Mikulas Patocka
Browse files

dm integrity: Remove extra unlikely helper



In IS_ERR, the unlikely is used for the input parameter,
so these is no need to use it again outside.

Signed-off-by: default avatarHongbo Li <lihongbo22@huawei.com>
Signed-off-by: default avatarKunwu Chan <chentao@kylinos.cn>
Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
parent 00565cff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2447,7 +2447,7 @@ static int dm_integrity_map_inline(struct dm_integrity_io *dio)
	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);