git: 5f136a4c0149 - main - mxge_rss_eth_z8e_fw_modevent: eliminate write only variable parent
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Apr 2022 04:32:26 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5f136a4c01496cd05e01b39c3a19e9877d2ec8ee commit 5f136a4c01496cd05e01b39c3a19e9877d2ec8ee Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-05 02:09:57 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-05 04:29:47 +0000 mxge_rss_eth_z8e_fw_modevent: eliminate write only variable parent Sponsored by: Netflix --- sys/dev/mxge/mxge_rss_eth_z8e.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/mxge/mxge_rss_eth_z8e.c b/sys/dev/mxge/mxge_rss_eth_z8e.c index 04519f6e8f36..889abc367d57 100644 --- a/sys/dev/mxge/mxge_rss_eth_z8e.c +++ b/sys/dev/mxge/mxge_rss_eth_z8e.c @@ -15,7 +15,7 @@ __FBSDID("$FreeBSD$"); static int mxge_rss_eth_z8e_fw_modevent(module_t mod, int type, void *unused) { - const struct firmware *fp, *parent; + const struct firmware *fp; int error; switch (type) { case MOD_LOAD: @@ -25,7 +25,6 @@ mxge_rss_eth_z8e_fw_modevent(module_t mod, int type, void *unused) rss_eth_z8e_uncompressed_length, NULL); if (fp == NULL) goto fail_0; - parent = fp; return (0); fail_0: return (ENXIO);