This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 9 Oct 2017 10:11:25 -0000
- Subject: [newlib-cygwin] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=56f23a510703b399bdf9268b0a6230470531ab8c
commit 56f23a510703b399bdf9268b0a6230470531ab8c
Author: Ken Brown <kbrown@cornell.edu>
Date: Sat Sep 16 22:04:15 2017 -0400
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler
Fix all callers.
Diff:
---
winsup/cygwin/pinfo.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index a068bcc..72aa658 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -819,7 +819,7 @@ out:
fhandler_pipe *
_pinfo::pipe_fhandler (int64_t unique_id, size_t &n)
{
- if (!this || !pid)
+ if (!pid)
return NULL;
if (pid == myself->pid)
return NULL;