]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dm ebs: avoid double unlikely() notation when using IS_ERR()
authorAntonio Quartulli <a@unstable.cc>
Thu, 10 Dec 2020 08:50:49 +0000 (09:50 +0100)
committerMike Snitzer <snitzer@redhat.com>
Mon, 21 Dec 2020 18:59:37 +0000 (13:59 -0500)
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 <a@unstable.cc>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ebs-target.c

index cb85610527c2ca29fa484ea43f1aa9912d2c8323..55bcfb74f51faf7f7b648e03a38f4c932e258685 100644 (file)
@@ -86,7 +86,7 @@ static int __ebs_rw_bvec(struct ebs_c *ec, int rw, struct bio_vec *bv, struct bv
                else
                        ba = dm_bufio_new(ec->bufio, block, &b);
 
-               if (unlikely(IS_ERR(ba))) {
+               if (IS_ERR(ba)) {
                        /*
                         * Carry on with next buffer, if any, to issue all possible
                         * data but return error.