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();
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to