From patchwork Wed Oct 19 10:10:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 78216 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp164081qge; Wed, 19 Oct 2016 03:10:50 -0700 (PDT) X-Received: by 10.107.200.10 with SMTP id y10mr5499192iof.73.1476871850307; Wed, 19 Oct 2016 03:10:50 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id qp8si33230767pac.89.2016.10.19.03.10.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 03:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-return-438989-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-438989-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-438989-patch=linaro.org@gcc.gnu.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=J5tWNFxVypezfrkj0ABpbV8prJJS0R+lRe2Eg6TZWg1QcWl156 SA6id1O1wrC+JIaUa2cag0GFG0gR1AB2Ka12/aWNSd5gsY0G8eQzAlKUhs6CArQO lan82VOosfvZ9xWS5t9IUHUpPwyyAarKTv6iQikEpd2Oq4tAxYJIOyBVA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=7uakxMVX6CIc2khLXplZnHwAbRs=; b=kb/dkkcy5mQABQPyDoF5 /1l3tWd9rX/BXlm1AGdVO1pMAL6nqoQnmNZzoI+roYAa48LOVHeD+Y6fII5LmakZ 9Ethcygi/6YENUVzJhf6rbmgtTi/vA0O6K5TOYS+VZqnfCM7gDKNlMh/+38EmYfn x6zfTVTpg93UJP2oTX5iZLM= Received: (qmail 44225 invoked by alias); 19 Oct 2016 10:10:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 44215 invoked by uid 89); 19 Oct 2016 10:10:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1005, callee, FNDECL X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Oct 2016 10:10:23 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9E8F9AD70 for ; Wed, 19 Oct 2016 10:10:21 +0000 (UTC) To: GCC Patches From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH, OBVIOUS] Replace NULL with false as a return value Message-ID: <6f3a3dae-f16b-add8-37a3-6831e415857d@suse.cz> Date: Wed, 19 Oct 2016 12:10:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-IsSubscribed: yes Hello. Replacing NULL with false in a method with the boolean return type should be obvious. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Martin >From 9071aa82e0203cf71fcc743f2e94aa7151986b6e Mon Sep 17 00:00:00 2001 From: marxin Date: Tue, 18 Oct 2016 17:59:33 +0200 Subject: [PATCH] Replace NULL with false as a return value gcc/ChangeLog: 2016-10-18 Martin Liska * cgraph.h (cgraph_edge::binds_to_current_def_p): Replace NULL with false as a return value. --- gcc/cgraph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/cgraph.h b/gcc/cgraph.h index ecafe63..cc730d2 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -3042,7 +3042,7 @@ cgraph_edge::binds_to_current_def_p () if (callee) return callee->binds_to_current_def_p (caller); else - return NULL; + return false; } /* Return true if the TM_CLONE bit is set for a given FNDECL. */ -- 2.10.1