Re: [PATCH 3/5] staging: r8188eu: (trivial) remove a duplicate debug print
From: Phillip Potter
Date: Wed Aug 11 2021 - 19:53:30 EST
On Wed, 11 Aug 2021 at 21:15, Martin Kaiser <martin@xxxxxxxxx> wrote:
>
> Keep the one that shows the wakeup capability.
>
> Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
> ---
> drivers/staging/r8188eu/os_dep/usb_intf.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c
> index 4bf89b78a74a..6e4bf623f788 100644
> --- a/drivers/staging/r8188eu/os_dep/usb_intf.c
> +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c
> @@ -624,7 +624,6 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
> dvobj->pusbdev->do_remote_wakeup = 1;
> pusb_intf->needs_remote_wakeup = 1;
> device_init_wakeup(&pusb_intf->dev, 1);
> - DBG_88E("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~~~~\n");
> DBG_88E("\n padapter->pwrctrlpriv.bSupportRemoteWakeup~~~[%d]~~~\n",
> device_may_wakeup(&pusb_intf->dev));
> }
> --
> 2.20.1
>
Dear Martin,
Just my personal opinion, but I'd be inclined to strip out all DBG_88E
calls totally. If there are necessary functions being called such as
device_may_wakeup() we can always just keep this part and remove the
macro call (not checked this function out myself yet). Thanks.
Regards,
Phil