]> 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)
commit8fd865b9b7ba03a404e1bd231718498afbbc13fb
tree6d627e54d9a1b9b083911d51ea4e41c9db716c4e
parent6b1b58a8b7171d8e32ad96f450d8c55962dbb209
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