Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6438319ybi; Wed, 31 Jul 2019 14:30:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqwthF03fhiDrWA3tfy9wqKX4oG+xN624bF2NkpHjnPpZAQ3Mhpm/KxAJF6H1I55bBv5jf/O X-Received: by 2002:a63:4185:: with SMTP id o127mr4653156pga.82.1564608637390; Wed, 31 Jul 2019 14:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564608637; cv=none; d=google.com; s=arc-20160816; b=mEdkSfGcvIzvGZgHaqgTNj5rtE8o+3fyquJ0Q8zx/toy++nplEgQ/3N3a/dIjSVM6v b+zq89NzkWlMFrUFKtL01ZYwML113hIO8xVX/PwKbzs5X0tdcJqxjNJLYke/CmnZKyiu VXi1N4nZJBqFk6AL3eh2horiQU8akxta/ystXzFDBExkTuFIFf5HBaMvV0R0iBnhmsgl AnbAIOuqGpOiQsn8YSMLwgbSm78e0lkSiijyVvphbEXRLJo+dW9a6c8rJrtINwy+JUeZ hcB7x1krYdL/qqduI/5Za6bHYgK9kzF+SOfPWJe6mnWNgSrzqisSr03TByqmcFa3GKQK COqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=84aHuIfZmECrMvkqonVUqszKUtzo90v3xEDbe3Pz2ZY=; b=keDPD2/5lQI/2h5JATKderSkrG/6Bb/3Pc7wkyFIovtaLsvnLD/Vb2x5OIXXsBmj2G HdylTc/qUDhNv3/EOcAhQ9eOqQZovc8dSx7XD/NmO84xbeZuW0ftWp5zxZRyhR9KbiwO Il4tzOdMdY2WFcJyQOI6n9AyAEvIVD5c7ZYTO/n1p07pZ75Tp5QKcUjTETxK+dnGf05X szoFvvImYwM2jVElscXwNFWX3VL6NmiAW49VxnDzxkJlX4qChFl91ymj6LBsgfD5ZYm8 nbd3j+PXcoDMwPmPpQ9W33uETqHwl7lJcnbch/n3SBRlZGZMPLR2QNT2auGDniUzFUAr bg6A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68si31706619plb.416.2019.07.31.14.30.22; Wed, 31 Jul 2019 14:30:37 -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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727360AbfGaSYm (ORCPT + 99 others); Wed, 31 Jul 2019 14:24:42 -0400 Received: from ex13-edg-ou-002.vmware.com ([208.91.0.190]:7789 "EHLO EX13-EDG-OU-002.vmware.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728189AbfGaSYj (ORCPT ); Wed, 31 Jul 2019 14:24:39 -0400 Received: from sc9-mailhost2.vmware.com (10.113.161.72) by EX13-EDG-OU-002.vmware.com (10.113.208.156) with Microsoft SMTP Server id 15.0.1156.6; Wed, 31 Jul 2019 11:24:34 -0700 Received: from rlwimi.localdomain (unknown [10.166.66.112]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 5CD74B284F; Wed, 31 Jul 2019 14:24:37 -0400 (EDT) From: Matt Helsley To: LKML CC: Ingo Molnar , Steven Rostedt , Matt Helsley Subject: [PATCH v4 1/8] recordmcount: Remove redundant strcmp Date: Wed, 31 Jul 2019 11:24:09 -0700 Message-ID: <358e590b49adbe4185e161a8b364e323f3d52857.1564596289.git.mhelsley@vmware.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII Received-SPF: None (EX13-EDG-OU-002.vmware.com: mhelsley@vmware.com does not designate permitted sender hosts) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The strcmp is unnecessary since .text is already accepted as a prefix in the strncmp(). Signed-off-by: Matt Helsley --- scripts/recordmcount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c index 8387a9bc064a..ebe98c39f3cd 100644 --- a/scripts/recordmcount.c +++ b/scripts/recordmcount.c @@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname) strcmp(".irqentry.text", txtname) == 0 || strcmp(".softirqentry.text", txtname) == 0 || strcmp(".kprobes.text", txtname) == 0 || - strcmp(".cpuidle.text", txtname) == 0 || - strcmp(".text.unlikely", txtname) == 0; + strcmp(".cpuidle.text", txtname) == 0; } /* 32 bit and 64 bit are very similar */ -- 2.20.1