diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2019-02-13 06:46:56 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-03-05 20:53:47 +0100 |
commit | 5e3d0e37062e2fc28187db403b11ce7764d843a5 (patch) | |
tree | 00657eb5d2c7a1a9f94b8e0cdebf88d11232aea1 /drivers/md/dm-integrity.c | |
parent | dm: always call blk_queue_split() in dm_process_bio() (diff) | |
download | linux-5e3d0e37062e2fc28187db403b11ce7764d843a5.tar.xz linux-5e3d0e37062e2fc28187db403b11ce7764d843a5.zip |
dm integrity: remove redundant unlikely annotation
unlikely has already included in IS_ERR(),
so just remove redundant unlikely annotation.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-integrity.c')
-rw-r--r-- | drivers/md/dm-integrity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-integrity.c b/drivers/md/dm-integrity.c index 457200ca6287..f1ab81b19de9 100644 --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -1122,7 +1122,7 @@ static int dm_integrity_rw_tag(struct dm_integrity_c *ic, unsigned char *tag, se return r; data = dm_bufio_read(ic->bufio, *metadata_block, &b); - if (unlikely(IS_ERR(data))) + if (IS_ERR(data)) return PTR_ERR(data); to_copy = min((1U << SECTOR_SHIFT << ic->log2_buffer_sectors) - *metadata_offset, total_size); |