svn commit: r291998 - head/sys/kern

Steven Hartland smh at FreeBSD.org
Tue Dec 8 18:38:34 UTC 2015


Author: smh
Date: Tue Dec  8 18:38:33 2015
New Revision: 291998
URL: https://svnweb.freebsd.org/changeset/base/291998

Log:
  Don't use 0 for pointer comparison
  
  Use NULL instead of 0 for comparison with panicstr.
  
  MFC after:	1 week
  Sponsored by:	Multiplay

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Tue Dec  8 17:56:40 2015	(r291997)
+++ head/sys/kern/vfs_bio.c	Tue Dec  8 18:38:33 2015	(r291998)
@@ -1280,7 +1280,7 @@ bufshutdown(int show_busybufs)
 		/*
 		 * Unmount filesystems
 		 */
-		if (panicstr == 0)
+		if (panicstr == NULL)
 			vfs_unmountall();
 	}
 	swapoff_all();


More information about the svn-src-head mailing list