Skip to content

Commit

Permalink
staging: rtl8188eu: remove unnecessary logging
Browse files Browse the repository at this point in the history
This commit fixes the following checkpatch.pl issues:

+               pr_debug("===> %s\n", __func__);

WARNING: Unnecessary ftrace-like logging - prefer using ftrace
158: FILE: drivers/staging/rtl8188eu/os_dep/usb_intf.c:158:

WARNING: Unnecessary ftrace-like logging - prefer using ftrace
177: FILE: drivers/staging/rtl8188eu/os_dep/usb_intf.c:177:
+       pr_debug("<=== %s\n", __func__);

and removes another line of unnecessary logging, which was not
identified by checkpatch.pl in an automated manner.

Signed-off-by: Jan Gruber <j4n6ru@gmail.com>
Link: https://lore.kernel.org/r/20210705172101.239899-1-j4n6ru@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jan Gruber authored and Greg Kroah-Hartman committed Jul 21, 2021
1 parent a0d38df commit 1be0599
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/rtl8188eu/os_dep/usb_intf.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ void usb_intf_stop(struct adapter *padapter)
static void rtw_dev_unload(struct adapter *padapter)
{
if (padapter->bup) {
pr_debug("===> %s\n", __func__);
padapter->bDriverStopped = true;
if (padapter->xmitpriv.ack_tx)
rtw_ack_tx_done(&padapter->xmitpriv, RTW_SCTX_DONE_DRV_STOP);
Expand All @@ -173,8 +172,6 @@ static void rtw_dev_unload(struct adapter *padapter)

padapter->bup = false;
}

pr_debug("<=== %s\n", __func__);
}

static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
Expand Down Expand Up @@ -454,8 +451,6 @@ static void rtw_dev_remove(struct usb_interface *pusb_intf)
struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
struct adapter *padapter = dvobj->if1;

pr_debug("+%s\n", __func__);

if (!pusb_intf->unregistering)
padapter->bSurpriseRemoved = true;

Expand Down

0 comments on commit 1be0599

Please sign in to comment.