Print this page
3910 t_look(3NSL) should never return T_ERROR

@@ -23,10 +23,11 @@
  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 /*
  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2014 Gary Mills
  */
 
 /*
  * Network SNDR/ncall-ip server - based on nfsd
  */

@@ -1276,13 +1277,12 @@
                         if (!is_listen_fd_index(fd))
                                 break;
                         else
                                 goto fdclose;
 
-                case T_ERROR:
                 default:
-                        if (event == T_ERROR || t_errno == TSYSERR) {
+                        if (t_errno == TSYSERR) {
                                 if ((errorstr = strerror(errno)) == NULL) {
                                         (void) snprintf(buf, sizeof (buf),
                                             "Unknown error num %d", errno);
                                         errorstr = (const char *)buf;
                                 }