]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit52252adede912890b81e0a05503a482062e17c6e
tree6d627e54d9a1b9b083911d51ea4e41c9db716c4e
parent252bd1256396cebc6fc3526127fdb0b317601318
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 <a@unstable.cc>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ebs-target.c