Revert "brcmfmac: add a check for the status of usb_register"
[ Upstream commit30a3509476] This reverts commit42daad3343. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original commit here did nothing to actually help if usb_register() failed, so it gives a "false sense of security" when there is none. The correct solution is to correctly unwind from this error. Cc: Kangjie Lu <kjlu@umn.edu> Cc: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210503115736.2104747-69-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
43e6b2ed46
commit
f0044d135d
1 changed files with 1 additions and 5 deletions
|
|
@ -1586,10 +1586,6 @@ void brcmf_usb_exit(void)
|
|||
|
||||
void brcmf_usb_register(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
brcmf_dbg(USB, "Enter\n");
|
||||
ret = usb_register(&brcmf_usbdrvr);
|
||||
if (ret)
|
||||
brcmf_err("usb_register failed %d\n", ret);
|
||||
usb_register(&brcmf_usbdrvr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue