Skip to content

Commit 52252ad

Browse files
ordexsnitm
authored andcommitted
dm ebs: avoid double unlikely() notation when using IS_ERR()
The definition of IS_ERR() already applies the unlikely() notation when checking the error status of the passed pointer. For this reason there is no need to have the same notation outside of IS_ERR() itself. Clean up code by removing redundant notation. Signed-off-by: Antonio Quartulli <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 252bd12 commit 52252ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-ebs-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static int __ebs_rw_bvec(struct ebs_c *ec, int rw, struct bio_vec *bv, struct bv
8686
else
8787
ba = dm_bufio_new(ec->bufio, block, &b);
8888

89-
if (unlikely(IS_ERR(ba))) {
89+
if (IS_ERR(ba)) {
9090
/*
9191
* Carry on with next buffer, if any, to issue all possible
9292
* data but return error.

0 commit comments

Comments
 (0)