git: 753b13c64382 - stable/13 - sb_probe: eliminate write only variable r

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:29:45 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=753b13c64382c20d4b02500e258f39db06b31cda

commit 753b13c64382c20d4b02500e258f39db06b31cda
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:32 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:54 +0000

    sb_probe: eliminate write only variable r
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 635a4068d2c5a711cf6cf35d6c9be8e550b5a5d9)
---
 sys/dev/sound/isa/sb8.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/sound/isa/sb8.c b/sys/dev/sound/isa/sb8.c
index b45358c6c29c..b4e9d98232ba 100644
--- a/sys/dev/sound/isa/sb8.c
+++ b/sys/dev/sound/isa/sb8.c
@@ -691,14 +691,14 @@ static int
 sb_probe(device_t dev)
 {
     	char buf[64];
-	uintptr_t func, ver, r, f;
+	uintptr_t func, ver, f;
 
 	/* The parent device has already been probed. */
-	r = BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func);
+	BUS_READ_IVAR(device_get_parent(dev), dev, 0, &func);
 	if (func != SCF_PCM)
 		return (ENXIO);
 
-	r = BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver);
+	BUS_READ_IVAR(device_get_parent(dev), dev, 1, &ver);
 	f = (ver & 0xffff0000) >> 16;
 	ver &= 0x0000ffff;
 	if ((f & BD_F_ESS) || (ver >= 0x400))