lkml.org 
[lkml]   [2021]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 68/69] Revert "brcmfmac: add a check for the status of usb_register"
    Date
    This reverts commit 42daad3343be4a4e1ee03e30a5f5cc731dadfef5.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 6 +-----
    1 file changed, 1 insertion(+), 5 deletions(-)

    diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
    index 586f4dfc638b..d2a803fc8ac6 100644
    --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
    +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
    @@ -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);
    }
    --
    2.31.1
    \
     
     \ /
      Last update: 2021-05-03 14:03    [W:4.467 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site