Re: [PATCH 3/5] staging: r8188eu: (trivial) remove a duplicate debug print

Dan Carpenter
2021-08-12T06:18:38Z

On Thu, Aug 12, 2021 at 12:53:16AM +0100, Phillip Potter wrote:
> On Wed, 11 Aug 2021 at 21:15, Martin Kaiser <martin@kaiser.cx> wrote:
> >
> > Keep the one that shows the wakeup capability.
> >

Please think of the subject and the commit message as two different
things. Often it's people reviewing on email will only read one or the
other. In other words just restate the subject:

These two debug messages have the same information. Delete the less
informative one and keep the other.

> 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.
>

Yeah. I agree. The DBG_88E() doesn't call device_may_wakeup() unless
the module is loaded with a high enough value "rtw_debug" module option
so hopefully device_may_wakeup() does not have side effects. (It does
not).

Thanks for reviewing these patches. I do think it's nice to have
positive reviews instead of just me complaining and pointing out the
negative things. We are trying to get code merged, not trying to put up
roadblocks so maybe encouraging more Acked-by reviews is a good thing...

regards,
dan carpenter