From patchwork Mon Aug 10 06:12:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 52132 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 9145420539 for ; Mon, 10 Aug 2015 06:15:55 +0000 (UTC) Received: by lbcli1 with SMTP id li1sf1565327lbc.2 for ; Sun, 09 Aug 2015 23:15:54 -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=RVy8rxN33j7Gum+f3iIhvTEFAByyHwISrXgxbrz30lE=; b=a7IXh2yicrgWPhhh/64XxS34zkKwq6twW9gCDpTcdgzcBS4g57bcBM9DY1ZfoxnonR uIDlFEz9jF6hSecN9LU30rtB92osa8Iqmy0yncOHdPsgvtIFrcSjPxyk8DbFaaLL9/F7 omysgHlFOfEF0gGgtO0K/pTrXnRMVzTS+TqnuNDp/KXberqylCqLFuimrWKPNszNUFua UVzlk/YOuu8CQLpUpr8zEQj4450FhWBfFnzzB0Wh+xAaEgb4U/iAKLlWXUjv13VtxmOT K+XZuLP7y6T/ngTtlMYE0sNVQfbQztB1A6wY6GJczdq7bHr+OvRNIqPNHxDhcdINE5IV iAkA== X-Gm-Message-State: ALoCoQkywHjAT+9zup1m95niToVi+YH2E4NvKrqSxWeKo2pvGunTuWKb1y1TGq7AQkh8AAsdddey X-Received: by 10.180.96.137 with SMTP id ds9mr3176420wib.2.1439187354525; Sun, 09 Aug 2015 23:15:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.87.41 with SMTP id u9ls83669laz.58.gmail; Sun, 09 Aug 2015 23:15:54 -0700 (PDT) X-Received: by 10.112.146.106 with SMTP id tb10mr18496970lbb.22.1439187353991; Sun, 09 Aug 2015 23:15:53 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com. [209.85.217.174]) by mx.google.com with ESMTPS id jt4si13420492lab.59.2015.08.09.23.15.53 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Aug 2015 23:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by lbbsx3 with SMTP id sx3so5625878lbb.0 for ; Sun, 09 Aug 2015 23:15:53 -0700 (PDT) X-Received: by 10.112.67.65 with SMTP id l1mr8491544lbt.86.1439187353895; Sun, 09 Aug 2015 23:15:53 -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 l6csp1739990lba; Sun, 9 Aug 2015 23:15:52 -0700 (PDT) X-Received: by 10.68.182.3 with SMTP id ea3mr41205068pbc.126.1439187352722; Sun, 09 Aug 2015 23:15:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si5124412pdm.195.2015.08.09.23.15.51; Sun, 09 Aug 2015 23:15:52 -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 S1754091AbbHJGPt (ORCPT + 28 others); Mon, 10 Aug 2015 02:15:49 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:36694 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbbHJGPs (ORCPT ); Mon, 10 Aug 2015 02:15:48 -0400 Received: by pacrr5 with SMTP id rr5so96397231pac.3 for ; Sun, 09 Aug 2015 23:15:48 -0700 (PDT) X-Received: by 10.66.97.65 with SMTP id dy1mr41431069pab.78.1439187348004; Sun, 09 Aug 2015 23:15:48 -0700 (PDT) Received: from localhost ([223.227.137.11]) by smtp.gmail.com with ESMTPSA id fl6sm18550705pab.12.2015.08.09.23.15.44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 09 Aug 2015 23:15:47 -0700 (PDT) From: Viresh Kumar To: akpm@linux-foundation.org Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , "Kirill A. Shutemov" , Andrea Arcangeli , "Aneesh Kumar K.V" , David Rientjes , Ebru Akagunduz , linux-mm@kvack.org (open list:MEMORY MANAGEMENT), Matthew Wilcox , Mel Gorman , Naoya Horiguchi Subject: [PATCH V1 Resend 10/11] mm: Drop unlikely before IS_ERR(_OR_NULL) Date: Mon, 10 Aug 2015 11:42:32 +0530 Message-Id: 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.217.174 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. Acked-by: Kirill A. Shutemov 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 7109330c5911..97b8d5cd4550 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -151,7 +151,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;