From f3584df197214b997bc9ae927780e03c37c9e36c Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 14 Mar 2017 02:06:03 +0000 Subject: MFC r313982, r314068: sys: Replace zero with NULL for pointers. Found with: devel/coccinelle --- sys/dev/agp/agp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/agp') diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c index 7d024d0..47c0aaa 100644 --- a/sys/dev/agp/agp.c +++ b/sys/dev/agp/agp.c @@ -820,7 +820,7 @@ agp_close(struct cdev *kdev, int fflag, int devtype, struct thread *td) /* * Clear the GATT and force release on last close */ - while ((mem = TAILQ_FIRST(&sc->as_memory)) != 0) { + while ((mem = TAILQ_FIRST(&sc->as_memory)) != NULL) { if (mem->am_is_bound) AGP_UNBIND_MEMORY(dev, mem); AGP_FREE_MEMORY(dev, mem); -- cgit v1.1