Module Name: src Committed By: thorpej Date: Mon Aug 9 01:09:41 UTC 2021
Modified Files: src/sys/dev/i2c [thorpej-i2c-spi-conf2]: i2c.c Log Message: In iic_close(), mark the "sc" variable as __diagused. To generate a diff of this commit: cvs rdiff -u -r1.80.2.1 -r1.80.2.2 src/sys/dev/i2c/i2c.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/i2c/i2c.c diff -u src/sys/dev/i2c/i2c.c:1.80.2.1 src/sys/dev/i2c/i2c.c:1.80.2.2 --- src/sys/dev/i2c/i2c.c:1.80.2.1 Mon Aug 9 00:30:09 2021 +++ src/sys/dev/i2c/i2c.c Mon Aug 9 01:09:41 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: i2c.c,v 1.80.2.1 2021/08/09 00:30:09 thorpej Exp $ */ +/* $NetBSD: i2c.c,v 1.80.2.2 2021/08/09 01:09:41 thorpej Exp $ */ /*- * Copyright (c) 2021 The NetBSD Foundation, Inc. @@ -69,7 +69,7 @@ #endif #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.80.2.1 2021/08/09 00:30:09 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: i2c.c,v 1.80.2.2 2021/08/09 01:09:41 thorpej Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -954,7 +954,8 @@ iic_open(dev_t dev, int flag, int fmt, l static int iic_close(dev_t dev, int flag, int fmt, lwp_t *l) { - struct iic_softc *sc = device_lookup_private(&iic_cd, minor(dev));; + struct iic_softc *sc __diagused = + device_lookup_private(&iic_cd, minor(dev));; KASSERT(iic_refcnt != 0); KASSERT(sc != NULL);