mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 16:06:19 +07:00
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>
This commit is contained in:
parent
effd58c95f
commit
5e3d0e3706
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user