dm: remove unnecessary unlikely() around WARN_ON_ONCE()
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
092b564876
commit
bab5d98884
@ -1200,7 +1200,7 @@ static void queue_demotion(struct smq_policy *mq)
|
||||
struct policy_work work;
|
||||
struct entry *e;
|
||||
|
||||
if (unlikely(WARN_ON_ONCE(!mq->migrations_allowed)))
|
||||
if (WARN_ON_ONCE(!mq->migrations_allowed))
|
||||
return;
|
||||
|
||||
e = q_peek(&mq->clean, mq->clean.nr_levels / 2, true);
|
||||
|
@ -1666,7 +1666,7 @@ static blk_qc_t __process_bio(struct mapped_device *md,
|
||||
* Defend against IO still getting in during teardown
|
||||
* - as was seen for a time with nvme-fcloop
|
||||
*/
|
||||
if (unlikely(WARN_ON_ONCE(!ti || !dm_target_is_valid(ti)))) {
|
||||
if (WARN_ON_ONCE(!ti || !dm_target_is_valid(ti))) {
|
||||
error = -EIO;
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user