Skip to content

Commit

Permalink
dm integrity: remove redundant unlikely annotation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chengguang Xu authored and Mike Snitzer committed Mar 5, 2019
1 parent effd58c commit 5e3d0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-integrity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5e3d0e3

Please sign in to comment.