Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1993961imm; Fri, 7 Sep 2018 09:12:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYoCZ1mqEv8i4afs1sMUu9TfU/ylVhbLxF1ilh8SFkqUBoFF9O5acDsD97riPiDAHllSOHs X-Received: by 2002:a63:f616:: with SMTP id m22-v6mr9074432pgh.293.1536336746273; Fri, 07 Sep 2018 09:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536336746; cv=none; d=google.com; s=arc-20160816; b=ZGcuZB1r9qa1YRgwuSYpNGJjPre75kPLwDZ94R7NOT0jMehWorbLhB8hjtzCFeszv2 SRYhBnL8He2M/4BgBIX6TXCfXRkx2S9D9cBpvf7oJctkecTxa0ikYcEXiLBgDyoxspeW GBZGY/5W3HRZOnDmN+lFHUeJhxYoBgxIXFwY1ju3j6/kwXxPHPAAs6HWzaJBmfx3hqwK /hwBLMvTVAF3d2rL779xy6fg1ymEnPE7MFMfmyWUQgNcdnLdge6t92P2xoaVMZyzmN8h 0mlwwKE4PoTnGIaXW/4MaX/zJu0zgLKWOnF9e4mGrJF4YUrd2CyjedDJM06PYS2FRC37 eLTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=kUCEmSe6QxwGDon79jCc33ks8ZtnQVp2Pa9N6MgRY7g=; b=TuoaqkIU9jLoH9ehMf4frMoAILa+6o0M5lKtSsc95nPWLEoV9W7ePng8T92mBrQO7x njYcKLHrUOnl89SDPUjDlzP2TUK1EO3UOOc2iOCo9UYjSxoAG+7NNzpqJbm38varLIG9 iAfzetgIlfBkT2wtubytzmANyb5dH10YmEHpj4INmxfhvuiuwOqan7m6ObC4rTVuilct Xm0XTRjVAd7BhYmER0NtAZM4LXtooas4rj6U2KbMYOwTSDko53eoZGUEhyeshwZ7wY9Q OxOomYFV6ptzeHWYOaonRXnqSmnjD83fth0GWnjW1zb9LrwgBXQjB3OnRizS46lRbS4t Q7bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="D8f/H3hy"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h76-v6si8682692pfk.329.2018.09.07.09.12.10; Fri, 07 Sep 2018 09:12:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="D8f/H3hy"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728193AbeIGUvm (ORCPT + 99 others); Fri, 7 Sep 2018 16:51:42 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36336 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727598AbeIGUvl (ORCPT ); Fri, 7 Sep 2018 16:51:41 -0400 Received: by mail-lj1-f196.google.com with SMTP id v26-v6so12713526ljj.3; Fri, 07 Sep 2018 09:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=kUCEmSe6QxwGDon79jCc33ks8ZtnQVp2Pa9N6MgRY7g=; b=D8f/H3hyni4qDW0E4eRLLovKc1su3zhrJR5HXFY6YSW4FRmQ1ws6dKF2HN8RDyfD1o jamMgsatUnk8cOAQX6371Ik42qUHEl03MbISTMEHsKd4SRGonnN9K31c1x+bp0jw1MxS 2qEUkmmHugfnlwgsHmaprC+KFXhqlzMxJy6i249qkgK/GwwP7ISvtGGA0m+HytJVn1Cn zalkRjZ7UrlkybzmofTCzxxCfmm2A//UkhqqOutB1F/vGVINCqwWpZ9Q+5Is77HG5awV IdGd4umnyEmjpU9zss4v9MtT4xfcAo/HKMTc+5j2mEUjOjT8b6kkGTZY77Lsw5P2gCVS yBxw== 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; bh=kUCEmSe6QxwGDon79jCc33ks8ZtnQVp2Pa9N6MgRY7g=; b=pbP5j5dC7R8mcPxftvooV6WnVAUUGElyOfLQlmS5O+ZHE7z4Kae5ihR8gXdn6+yw82 L/MLzWs1saGlI3kam/8GQRcOMXwsmBg3dLbFZ+UGpUmW3hPvO/BBi9P3xcFuPAjUbprD uQJ8XNJijMhxbtROUvXE1NJFctLFDsxVG7hOpugJs4w0haTDkzg3XJlLqHpfxpVCg9TT YJIMvYxy3pCDAtCtaQ0w/NZSgf1dZUKLFI31PcBbRKL9DLGs72+380oVwUvwlF5Qysa1 2Ect38GqPTufxqXYUIPUvZ6BHhcYlV8zGyZPyenmXuyEUgcFcjprBIi1+5/ON/IX+3tR /qtA== X-Gm-Message-State: APzg51AfLnnJYB0jDl0E3BzoJfpfBd4uGqs3ZgikEcWcjxS2qcgTxl6v W3C5MDotWCz7WpNS9w2Clvs= X-Received: by 2002:a2e:8807:: with SMTP id x7-v6mr5267231ljh.98.1536336603485; Fri, 07 Sep 2018 09:10:03 -0700 (PDT) Received: from Mort.jumbo.freeair (91-156-179-220.elisa-laajakaista.fi. [91.156.179.220]) by smtp.gmail.com with ESMTPSA id y16-v6sm1359643lje.30.2018.09.07.09.10.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 09:10:02 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: "Srivatsa S . Bhat" Cc: igor.stoppa@gmail.com, Igor Stoppa , "Rafael J. Wysocki" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: remove unnecessary unlikely() Date: Fri, 7 Sep 2018 19:09:55 +0300 Message-Id: <20180907160955.23291-1-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Srivatsa S. Bhat Cc: "Rafael J. Wysocki" Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index f53fb41efb7b..7aa3dcad2175 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -403,7 +403,7 @@ EXPORT_SYMBOL_GPL(cpufreq_freq_transition_begin); void cpufreq_freq_transition_end(struct cpufreq_policy *policy, struct cpufreq_freqs *freqs, int transition_failed) { - if (unlikely(WARN_ON(!policy->transition_ongoing))) + if (WARN_ON(!policy->transition_ongoing)) return; cpufreq_notify_post_transition(policy, freqs, transition_failed); -- 2.17.1