idualwifi7260 & iaxwifi200: Do not return but go to the appropriate fail.

This way, we will actually tear down what state got initialized.
This commit is contained in:
Augustin Cavalier 2022-06-20 17:15:45 -04:00
parent 22bdb7ba70
commit 561bb7bac5
2 changed files with 2 additions and 2 deletions

View File

@ -11029,7 +11029,7 @@ iwx_attach(struct device *parent, struct device *self, void *aux)
#ifdef __HAIKU__
if (iwx_preinit(sc) != 0)
return -1;
goto fail4;
#else
/*
* We cannot read the MAC address without loading the

View File

@ -12125,7 +12125,7 @@ iwm_attach(struct device *parent, struct device *self, void *aux)
ic->ic_ampdu_tx_stop = iwm_ampdu_tx_stop;
#ifdef __HAIKU__
if (iwm_preinit(sc) != 0)
return -1;
goto fail4;
#else
/*
* We cannot read the MAC address without loading the