harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r585145 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
Date Tue, 16 Oct 2007 14:02:28 GMT
Author: hindessm
Date: Tue Oct 16 07:02:25 2007
New Revision: 585145

URL: http://svn.apache.org/viewvc?rev=585145&view=rev
Log:
This call and check appears to be redundant since the function will return
with the same error code after the getJavaIoFileDescriptorContentsAsAPointer
call.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c?rev=585145&r1=585144&r2=585145&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/luni/shared/nethelp.c Tue
Oct 16 07:02:25 2007
@@ -1603,12 +1603,6 @@
   IDATA descriptor;
   PORT_ACCESS_FROM_ENV (env);
 
-  descriptorFID = getJavaIoFileDescriptorDescriptorFID (env);
-  if (NULL == descriptorFID)
-    {
-      return;
-    }
-
   /* fetch the fd field from the object */
   fd = (*env)->GetObjectField (env, recv, fdFID);
 



Mime
View raw message