projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
effd58c
)
dm integrity: remove redundant unlikely annotation
author
Chengguang Xu
<cgxu519@gmx.com>
Wed, 13 Feb 2019 05:46:56 +0000
(13:46 +0800)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 5 Mar 2019 19:53:47 +0000
(14:53 -0500)
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>
drivers/md/dm-integrity.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-integrity.c
b/drivers/md/dm-integrity.c
index
457200c
..
f1ab81b
100644
(file)
--- 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);