svn commit: r301780 - stable/10/sys/netipsec

Garrett Cooper ngie at FreeBSD.org
Fri Jun 10 13:57:57 UTC 2016


Author: ngie
Date: Fri Jun 10 13:57:56 2016
New Revision: 301780
URL: https://svnweb.freebsd.org/changeset/base/301780

Log:
  MFC r299387:
  r299387 (by cem):
  
  netipsec: Fix minor style nit
  
  Coverity points out that 'continue' is equivalent to 'break' in a do {}
  while(false) loop.
  
  CID:		1354983

Modified:
  stable/10/sys/netipsec/key.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netipsec/key.c
==============================================================================
--- stable/10/sys/netipsec/key.c	Fri Jun 10 08:33:15 2016	(r301779)
+++ stable/10/sys/netipsec/key.c	Fri Jun 10 13:57:56 2016	(r301780)
@@ -346,7 +346,7 @@ do { \
 	if ((head) != (sav)) {						\
 		ipseclog((LOG_DEBUG, "%s: state mismatched (TREE=%d SA=%d)\n", \
 			(name), (head), (sav)));			\
-		continue;						\
+		break;							\
 	}								\
 } while (0)
 


More information about the svn-src-all mailing list