Author: tuexen
Date: Sun Jul  7 18:58:49 2013
New Revision: 252990
URL: http://svnweb.freebsd.org/changeset/base/252990

Log:
  MFC r251248:
  Use LIST_EMPTY when appropriate.

Modified:
  stable/8/sys/netinet/sctputil.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/netinet/sctputil.c
==============================================================================
--- stable/8/sys/netinet/sctputil.c     Sun Jul  7 18:56:43 2013        
(r252989)
+++ stable/8/sys/netinet/sctputil.c     Sun Jul  7 18:58:49 2013        
(r252990)
@@ -3973,7 +3973,7 @@ sctp_abort_an_association(struct sctp_in
        if (stcb == NULL) {
                /* Got to have a TCB */
                if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) {
-                       if (LIST_FIRST(&inp->sctp_asoc_list) == NULL) {
+                       if (LIST_EMPTY(&inp->sctp_asoc_list)) {
                                sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_ABORT,
                                    SCTP_CALLED_DIRECTLY_NOCMPSET);
                        }
@@ -4028,7 +4028,7 @@ sctp_handle_ootb(struct mbuf *m, int iph
        SCTP_STAT_INCR_COUNTER32(sctps_outoftheblue);
        /* Generate a TO address for future reference */
        if (inp && (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) {
-               if (LIST_FIRST(&inp->sctp_asoc_list) == NULL) {
+               if (LIST_EMPTY(&inp->sctp_asoc_list)) {
                        sctp_inpcb_free(inp, SCTP_FREE_SHOULD_USE_ABORT,
                            SCTP_CALLED_DIRECTLY_NOCMPSET);
                }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to