diff options
author | Hongbo Li <[email protected]> | 2024-08-31 17:48:01 +0800 |
---|---|---|
committer | Mikulas Patocka <[email protected]> | 2024-09-02 11:41:11 +0200 |
commit | 35c9f09b5691d6dff1f3e62fe1825fa10b644b45 (patch) | |
tree | 9f3e70eb7bb98418acfe1eac8e29d25afc4c6b13 | |
parent | 00565cff01262c888512bffe9d41e4831a6f2cc7 (diff) |
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]>
-rw-r--r-- | drivers/md/dm-integrity.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 51e6964c1305..8306f8511078 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -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); |