Message ID | 20210303122049.151986-2-ulf.hansson@linaro.org |
---|---|
State | New |
Headers | show |
Series | mmc: block: Cleanup mmc_blk_probe() path | expand |
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c index 8e6a623b35de..dc6b2e8f4f95 100644 --- a/drivers/mmc/core/block.c +++ b/drivers/mmc/core/block.c @@ -2888,7 +2888,7 @@ static int mmc_blk_probe(struct mmc_card *card) card->complete_wq = alloc_workqueue("mmc_complete", WQ_MEM_RECLAIM | WQ_HIGHPRI, 0); - if (unlikely(!card->complete_wq)) { + if (!card->complete_wq) { pr_err("Failed to create mmc completion workqueue"); return -ENOMEM; }
mmc_blk_probe() isn't a hotpath, which makes it's questionable to use unlikely(). Therefore let's simply drop it. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1