mxge_ethp_z8e_fw_modevent: eliminate write only variable parent

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-04-04 20:09:27 -06:00
parent 498276b4b4
commit 886bc93da8

View File

@ -15,7 +15,7 @@ __FBSDID("$FreeBSD$");
static int
mxge_ethp_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_ethp_z8e_fw_modevent(module_t mod, int type, void *unused)
ethp_z8e_uncompressed_length, NULL);
if (fp == NULL)
goto fail_0;
parent = fp;
return (0);
fail_0:
return (ENXIO);