From: Phillip Potter <phil@philpotter.co.uk>
To: Martin Kaiser <lists@kaiser.cx>
Cc: gregkh@linuxfoundation.org, Larry.Finger@lwfinger.net,
straube.linux@gmail.com, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: r8188eu: remove MSG_88E calls from hal/usb_halinit.c
Date: Fri, 15 Oct 2021 18:47:26 +0100 [thread overview]
Message-ID: <YWm+rug27J7fGSEI@equinox> (raw)
In-Reply-To: <20211015083211.ngbgtmhkh3lh5kzj@viti.kaiser.cx>
On Fri, Oct 15, 2021 at 10:32:11AM +0200, Martin Kaiser wrote:
> Thus wrote Phillip Potter (phil@philpotter.co.uk):
>
> > Remove both MSG_88E calls from hal/usb_halinit.c, as these calls serve
> > no purpose other than to print the name of the function they are in
> > (_ReadAdapterInfo8188EU) on entry and on exit, with a timing of the
> > function, which is better accomplished by other means. Also remove
> > the jiffies assignment at the start of the function, as it is no
> > longer used.
>
> > Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
> > ---
> > drivers/staging/r8188eu/hal/usb_halinit.c | 6 ------
> > 1 file changed, 6 deletions(-)
>
> > diff --git a/drivers/staging/r8188eu/hal/usb_halinit.c b/drivers/staging/r8188eu/hal/usb_halinit.c
> > index f6db5b05e6e7..abbd107ad3c1 100644
> > --- a/drivers/staging/r8188eu/hal/usb_halinit.c
> > +++ b/drivers/staging/r8188eu/hal/usb_halinit.c
> > @@ -1073,15 +1073,9 @@ static void _ReadRFType(struct adapter *Adapter)
>
> > static int _ReadAdapterInfo8188EU(struct adapter *Adapter)
> > {
> > - u32 start = jiffies;
> > -
> > - MSG_88E("====> %s\n", __func__);
> > -
> > _ReadRFType(Adapter);/* rf_chip -> _InitRFType() */
> > _ReadPROMContent(Adapter);
>
> > - MSG_88E("<==== %s in %d ms\n", __func__, rtw_get_passing_time_ms(start));
> > -
> > return _SUCCESS;
> > }
>
> Makes sense to me. We should get rid of the prints that show only the
> function name.
>
> Acked-by: Martin Kaiser <martin@kaiser.cx>
Dear Martin,
Many thanks for the Acked-by :-)
Regards,
Phil
prev parent reply other threads:[~2021-10-15 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-15 0:02 [PATCH] staging: r8188eu: remove MSG_88E calls from hal/usb_halinit.c Phillip Potter
2021-10-15 7:55 ` Michael Straube
2021-10-15 17:45 ` Phillip Potter
2021-10-15 8:32 ` Martin Kaiser
2021-10-15 17:47 ` Phillip Potter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YWm+rug27J7fGSEI@equinox \
--to=phil@philpotter.co.uk \
--cc=Larry.Finger@lwfinger.net \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=lists@kaiser.cx \
--cc=straube.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox