git: ec235e162af9 - stable/13 - subr_firmware.c::unloadentry(): remove write-only variable

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Wed, 27 Oct 2021 00:45:20 UTC
The branch stable/13 has been updated by kib:

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

commit ec235e162af984c3b8893d8381868506360b27c9
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-10-21 17:40:24 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-10-27 00:24:40 +0000

    subr_firmware.c::unloadentry(): remove write-only variable
    
    (cherry picked from commit 6776747a0e0b1c0e3fb916685ac2180ca4ce2f3d)
---
 sys/kern/subr_firmware.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/kern/subr_firmware.c b/sys/kern/subr_firmware.c
index 0465f2a88483..aafb2a2ba265 100644
--- a/sys/kern/subr_firmware.c
+++ b/sys/kern/subr_firmware.c
@@ -412,7 +412,6 @@ static void
 unloadentry(void *unused1, int unused2)
 {
 	struct priv_fw *fp;
-	int err;
 
 	mtx_lock(&firmware_mtx);
 restart:
@@ -434,7 +433,7 @@ restart:
 		 * on unload to actually free the entry.
 		 */
 		mtx_unlock(&firmware_mtx);
-		err = linker_release_module(NULL, NULL, fp->file);
+		(void)linker_release_module(NULL, NULL, fp->file);
 		mtx_lock(&firmware_mtx);
 
 		/*