From owner-svn-src-all@freebsd.org Tue Dec 8 18:38:34 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 822039D4E5E; Tue, 8 Dec 2015 18:38:34 +0000 (UTC) (envelope-from smh@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 54307106D; Tue, 8 Dec 2015 18:38:34 +0000 (UTC) (envelope-from smh@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tB8IcXVG005735; Tue, 8 Dec 2015 18:38:33 GMT (envelope-from smh@FreeBSD.org) Received: (from smh@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tB8IcX2u005734; Tue, 8 Dec 2015 18:38:33 GMT (envelope-from smh@FreeBSD.org) Message-Id: <201512081838.tB8IcX2u005734@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: smh set sender to smh@FreeBSD.org using -f From: Steven Hartland Date: Tue, 8 Dec 2015 18:38:33 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291998 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2015 18:38:34 -0000 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();