From patchwork Wed Mar 3 12:20:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 392058 Delivered-To: patches@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5078099jap; Wed, 3 Mar 2021 04:20:55 -0800 (PST) X-Received: by 2002:a19:bd7:: with SMTP id 206mr14603673lfl.318.1614774055367; Wed, 03 Mar 2021 04:20:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614774055; cv=none; d=google.com; s=arc-20160816; b=O4f2WeTVHTMW03jr6r4rvIcFy5LaxjeDJBXwzX26dq0LMNlAxRPKyqYUIcaYLMdUE/ J/m/fgZqYXpWc1+lkvHARuzXcem1xjpFl8xV10f5sRMf1SlFv7rEAA3IS8Ua+m2MP11j yK+DQS1GbIUdtOgRvcRn+OggM9m05wP7EIrIDC+ps7aw4c4OkzP72kG2scotTKuzt9vG UD5AeLehyJQmwWMzTL+F0z4IZvFxTgmlb2nObmK/7Wo2idk3mXQz2RWBBUEP8Zj+5HGY txoyq/f4VkBDupZdqPZ41yOmMHhwUra0h+XCi1SY5xgzzDSyAib85UVByIkt4b7y5p6R Aw+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=soyM9wPlLASUiUbmRQQtsdUjbF417QlwKml+91jIMqs=; b=dJrO8mofHE00GBbxch8oG5xsZgKLK0RdcZHc06/UFpk3TNGiu7uQeXG/lZ9mToFGa1 c7B7qzGyjNhk0hcUFt0oaygY++n3y6gimAcqYYLmEM/sYl/Uj9JVyvkCS9Jot8VgYvw7 CjFLTW5xrH5YvwmQidYAJsnOhd0thBOP7CpHeY0iSBZxVIt/BemtM9acvMxp8X7cqAVG l+e35gCVWi7sq6vjxTKmdd9xRahP3LWx8gYrW1ULQ3Q/oyqDCtL9Q7Q2HYvXDgiDZhRz FFgG76JWCTbJ2Yx13mwwKCqIujc+kHRA17CLHgph9Ta6t7pJ6wdXgd8Yh4o3hExXUgaV hkTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8fTVYBk; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p10sor5550783lfu.90.2021.03.03.04.20.55 for (Google Transport Security); Wed, 03 Mar 2021 04:20:55 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H8fTVYBk; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=soyM9wPlLASUiUbmRQQtsdUjbF417QlwKml+91jIMqs=; b=H8fTVYBkdNNsM4NQ2zrh58J24JrxnUp/sbzJz+tslBM2fXthmdZg8PunTTxX5PeqZS wYB0hPGkc8fGLG2e26Y2ceHPXGShqZJ3egDGkhZUZ/fb72ew+VImxGywy/Jb7PiTCliF pW+kFtx3NpztdYl7ku0T3Q0A+CqiXg5nQJ0DIofQX1XrBw82M4XifHsHgHtqZVIF1tFh 96lG5SdY/uKjKkP+p7vcTIpNCU00AWHHGaSNr/9RlrczOeG2/ftzIfZRBarbCI1KI2Vs Zu6roEFOCAYzwiYyRpMY58cJ+d5uzvVprYR7BFzeOsJTBJnANQkM+jZJEMgbix0QKwvx MyOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=soyM9wPlLASUiUbmRQQtsdUjbF417QlwKml+91jIMqs=; b=T604dwBqwZ30d/znsr8Gadp0xm636lXbe2yokYhiFcHF9zIasDgdoapJgsH7LtpCbA Aogflm0tv5EkY6X91Ss7RtwqCJGltH8gmy8rtZfW42y/5nEHF3GOe+0G/TiYBw2iNoTT KvLnQEL5Q+lWf1DKUx9R6c5w6/N2AGTQI6G9bZD67+KRKkACsz3YJmDejSgPp+qFypuE 0r/Pz9i+fi8IQDO4/W2ZVvx5kqKB8y7K9i1nE5F2UHrzkBpj16+fVLEkyGIAVYa5ukUK J7D+ApYAKzmYoOJ53tmLDx101KDs24a1FKAKIFOw2rfj4cyZ76LxpqouLW4ufhtwLvJr KayA== X-Gm-Message-State: AOAM531wHzvcF67gWsxEHUjQbU6I8GHS2tDE4WZbWGD7qz+5n3mGveKo 8qAVdt6j8h4cy44DmYyxowKX1UeB X-Google-Smtp-Source: ABdhPJxhQ8IEPAejaPoXzG/IU+//OTOpt03Evjcamw7wzwgLwru5/CGFu9Rsa774rOsyYUKUJqMmIA== X-Received: by 2002:ac2:5e21:: with SMTP id o1mr14773513lfg.435.1614774055042; Wed, 03 Mar 2021 04:20:55 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-155-4-129-234.NA.cust.bahnhof.se. [155.4.129.234]) by smtp.gmail.com with ESMTPSA id d3sm811519lfq.249.2021.03.03.04.20.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 04:20:54 -0800 (PST) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson Cc: Adrian Hunter , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] mmc: block: Drop use of unlikely() in mmc_blk_probe() Date: Wed, 3 Mar 2021 13:20:47 +0100 Message-Id: <20210303122049.151986-2-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210303122049.151986-1-ulf.hansson@linaro.org> References: <20210303122049.151986-1-ulf.hansson@linaro.org> MIME-Version: 1.0 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 --- drivers/mmc/core/block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 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; }