From patchwork Fri Jul 31 08:38:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51758 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id 34C7322A8D for ; Fri, 31 Jul 2015 08:41:14 +0000 (UTC) Received: by lbbnr7 with SMTP id nr7sf19532579lbb.2 for ; Fri, 31 Jul 2015 01:41:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=u9fZu9vDDBERJMGpGsRoc1XVlNBRmSTbE5yE6uDD1iw=; b=WLpMmjluwkMqqdVQmeW/pxbnCdryQFZGI47StwUqEoB3A2OtH1kHTad47fQHXVSZEQ o/I+UpE+63uuue/BKIjsKBxlE4lf++VlYDD+9RXzUqp3k/WSsOaYomgG3erfaQOgh2xI 2mfl2sRkcGKlJpY17jNB39rVh6SaNo5aLFGkMh2OZn+KyepBjZTIkWCjdbJTfT4qE5js vE27yUbzv9xJmfz1YQtExNUO0TAmtkTaiS/bcPHOlAq9jZmaNQEkfIAnTg+qCUBPvECI CZ703g4jLA21xI4mWoP78qV6mowu0Mne23l7dRQ2oGWJKwDagqVfLhyFEHUePax9/8rx KtfQ== X-Gm-Message-State: ALoCoQm+idzDAFl++Hpav6y5vGHkEcDgnm2GdvM5mPNDg9nfJIibGexyjcOUyPGQO7yC8oT+9o2z X-Received: by 10.112.181.37 with SMTP id dt5mr589262lbc.10.1438332073115; Fri, 31 Jul 2015 01:41:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.234.108 with SMTP id ud12ls282518lac.43.gmail; Fri, 31 Jul 2015 01:41:12 -0700 (PDT) X-Received: by 10.152.116.109 with SMTP id jv13mr1623861lab.77.1438332072856; Fri, 31 Jul 2015 01:41:12 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id x3si3008820lal.47.2015.07.31.01.41.12 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 01:41:12 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by laah7 with SMTP id h7so39702705laa.0 for ; Fri, 31 Jul 2015 01:41:12 -0700 (PDT) X-Received: by 10.152.36.102 with SMTP id p6mr1602185laj.19.1438332072696; Fri, 31 Jul 2015 01:41:12 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp228126lba; Fri, 31 Jul 2015 01:41:11 -0700 (PDT) X-Received: by 10.70.48.68 with SMTP id j4mr4376386pdn.111.1438332071360; Fri, 31 Jul 2015 01:41:11 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id no7si8776617pdb.151.2015.07.31.01.41.09; Fri, 31 Jul 2015 01:41:11 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753333AbbGaIlA (ORCPT + 28 others); Fri, 31 Jul 2015 04:41:00 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:36217 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753224AbbGaIk5 (ORCPT ); Fri, 31 Jul 2015 04:40:57 -0400 Received: by pachj5 with SMTP id hj5so37484027pac.3 for ; Fri, 31 Jul 2015 01:40:57 -0700 (PDT) X-Received: by 10.66.159.225 with SMTP id xf1mr4633336pab.50.1438332056886; Fri, 31 Jul 2015 01:40:56 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id cf7sm6246333pac.41.2015.07.31.01.40.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 31 Jul 2015 01:40:56 -0700 (PDT) From: Viresh Kumar To: akpm@linux-foundation.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , "Aneesh Kumar K.V" , David Rientjes , Ebru Akagunduz , Johannes Weiner , "Kirill A. Shutemov" , linux-mm@kvack.org (open list:MEMORY MANAGEMENT), Mel Gorman , Michal Hocko , Vlastimil Babka Subject: [PATCH 14/15] mm: Drop unlikely before IS_ERR(_OR_NULL) Date: Fri, 31 Jul 2015 14:08:34 +0530 Message-Id: <91586af267deb26b905fba61a9f1f665a204a4e3.1438331416.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , IS_ERR(_OR_NULL) already contain an 'unlikely' compiler flag and there is no need to do that again from its callers. Drop it. Signed-off-by: Viresh Kumar --- mm/huge_memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/huge_memory.c b/mm/huge_memory.c index c107094f79ba..e14652480c59 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -149,7 +149,7 @@ static int start_stop_khugepaged(void) if (!khugepaged_thread) khugepaged_thread = kthread_run(khugepaged, NULL, "khugepaged"); - if (unlikely(IS_ERR(khugepaged_thread))) { + if (IS_ERR(khugepaged_thread)) { pr_err("khugepaged: kthread_run(khugepaged) failed\n"); err = PTR_ERR(khugepaged_thread); khugepaged_thread = NULL;