diff mbox

[OBVIOUS] Replace NULL with false as a return value

Message ID 6f3a3dae-f16b-add8-37a3-6831e415857d@suse.cz
State New
Headers show

Commit Message

Martin Liška Oct. 19, 2016, 10:10 a.m. UTC
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
diff mbox

Patch

From 9071aa82e0203cf71fcc743f2e94aa7151986b6e Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
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  <mliska@suse.cz>

	* 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