Skip to content

Commit 35c9f09

Browse files
Hongbo LiMikulas Patocka
authored andcommitted
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: Hongbo Li <[email protected]> Signed-off-by: Kunwu Chan <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]>
1 parent 00565cf commit 35c9f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/md/dm-integrity.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2447,7 +2447,7 @@ static int dm_integrity_map_inline(struct dm_integrity_io *dio)
24472447
bio->bi_iter.bi_sector += ic->start + SB_SECTORS;
24482448

24492449
bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
2450-
if (unlikely(IS_ERR(bip))) {
2450+
if (IS_ERR(bip)) {
24512451
bio->bi_status = errno_to_blk_status(PTR_ERR(bip));
24522452
bio_endio(bio);
24532453
return DM_MAPIO_SUBMITTED;
@@ -2520,7 +2520,7 @@ static void dm_integrity_inline_recheck(struct work_struct *w)
25202520
}
25212521

25222522
bip = bio_integrity_alloc(outgoing_bio, GFP_NOIO, 1);
2523-
if (unlikely(IS_ERR(bip))) {
2523+
if (IS_ERR(bip)) {
25242524
bio_put(outgoing_bio);
25252525
bio->bi_status = errno_to_blk_status(PTR_ERR(bip));
25262526
bio_endio(bio);

0 commit comments

Comments
 (0)