summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-verity.c
diff options
context:
space:
mode:
authorviresh kumar <viresh.kumar@linaro.org>2015-08-10 08:12:26 +0200
committerMike Snitzer <snitzer@redhat.com>2015-08-12 17:32:21 +0200
commitfc0a446152877d3a4e40166ddb19b6e0cb5f6567 (patch)
tree169815aacbf71c02b61973afbb7986deaa8f8f3a /drivers/md/dm-verity.c
parentdm: do not override error code returned from dm_get_device() (diff)
downloadlinux-fc0a446152877d3a4e40166ddb19b6e0cb5f6567.tar.xz
linux-fc0a446152877d3a4e40166ddb19b6e0cb5f6567.zip
dm: remove unlikely() before IS_ERR()
IS_ERR() already contains an 'unlikely' compiler flag so there is no need to do that again from IS_ERR() callers. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-verity.c')
-rw-r--r--drivers/md/dm-verity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-verity.c b/drivers/md/dm-verity.c
index 3adb3323b8c3..26eff8d41ed2 100644
--- a/drivers/md/dm-verity.c
+++ b/drivers/md/dm-verity.c
@@ -267,7 +267,7 @@ static int verity_verify_level(struct dm_verity_io *io, sector_t block,
verity_hash_at_level(v, block, level, &hash_block, &offset);
data = dm_bufio_read(v->bufio, hash_block, &buf);
- if (unlikely(IS_ERR(data)))
+ if (IS_ERR(data))
return PTR_ERR(data);
aux = dm_bufio_get_aux_data(buf);